[theora-dev] Problem compiling libtheora on MINGW32

Jean-Baptiste KEMPF jb at via.ecp.fr
Tue Jul 11 15:56:45 PDT 2006

Hello !

I got an issue compiling with mingw32 and libogg-1.1.3 on debian in 
1.0alpha7 :

I compiled with mingw32 libogg 1.1.3, but 
in libogg-1.1.3/include/ogg/os_types.h, there is 
#  elif 
     defined(__MINGW32__) typedef unsigned long long ogg_uint64_t;

and in libtheora-1.0alpha7/lib/dsp.h there is on line 22 :
typedef unsigned long int ogg_uint64_t;

so it says that it was already declared
" dsp.h:22: error: conflicting types for 'ogg_uint64_t' "

It seems that commenting that line does work for mingw32.

I attach a very simple patch that disable this line only in MINGW32

Jean-Baptiste Kempf
-------------- next part --------------
--- libtheora-1.0alpha7/lib/dsp.h	2006-06-13 00:57:36.000000000 +0200
+++ libtheora/lib/dsp.h	2006-07-11 21:00:37.000000000 +0200
@@ -19,7 +19,10 @@
 #define DSP_H
 #include <theora/theora.h>
-typedef unsigned long int ogg_uint64_t;
+#ifndef __MINGW32__
+    typedef unsigned long int ogg_uint64_t;
 typedef struct

More information about the theora-dev mailing list