On 10/19/2012 03:52, Roger Pack wrote: > Hello all. > > Using mingw-w64 "trunk" x86_64 and gcc (cross compiler) 4.7.1, I seem > to get the following when compiling libflite after configuring > flite-1.4-release [1] as $ > PATH=/home/rdp/dev/ffmpeg-windows-build-helpers/sandbox/mingw-w64-x86_64/bin:/... > ./configure --host=x86_64-w64-mingw32 > --prefix=/home/rdp/dev/ffmpeg-windows-build-helpers/sandbox/mingw-w64-x86_64/x86_64-w64-mingw32 > --disable-shared --enable-static > > [1] http://www.speech.cs.cmu.edu/flite/packed/flite-1.4/ has the source. > > This same configure works with 32 bit cross compiler, but with 64 bit, > I seem to end up getting these: > > https://gist.github.com/3914282 > > ... > /home/rdp/dev/ffmpeg-windows-build-helpers/sandbox/mingw-w64-x86_64/lib/gcc/x86_64-w64-mingw32/4.7.1/../../../../x86_64-w64-mingw32/include/intrin.h:1057:5: > error: conflicting types for 'wcslen' > In file included from find_sts_main.c:42:0: > /home/rdp/dev/ffmpeg-windows-build-helpers/sandbox/mingw-w64-x86_64/lib/gcc/x86_64-w64-mingw32/4.7.1/../../../../x86_64-w64-mingw32/include/string.h:123:18: > note: previous declaration of 'wcslen' was here > > definitions were: > > string.h: > > size_t __attribute((cdecl_)) wcslen(const wchar_t *_Str); > > intrin.h: > > size_t __attribute__((__cdecl__)) wcslen( wchar_t *); > > Anybody seen anything like this or may know what I'm running into here? > Thanks!
Something is messing with the defines in your code, it works fine when I
tested.
$ x86_64-w64-mingw32-gcc -E
mingw-w64/trunk/mingw-w64-headers/crt/intrin.h | grep wcslen
size_t __attribute__((__cdecl__)) wcslen(const wchar_t *);
$ x86_64-w64-mingw32-gcc -E
mingw-w64/trunk/mingw-w64-headers/crt/wchar.h | grep wcslen
size_t __attribute__((__cdecl__)) wcslen(const wchar_t *_Str);
signature.asc
Description: OpenPGP digital signature
------------------------------------------------------------------------------ Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_sfd2d_oct
_______________________________________________ Mingw-w64-public mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
