Hello, Recently I've started to work on compiling FreeTDS library with MinGW (and mingw-w64):
http://freetds.org/ Thanks to autoconf tools and the amazing work of FreeTDS developers, this pretty much went painless. Now, I've encountered one issue that I've reported to them here: http://lists.ibiblio.org/pipermail/freetds/2011q1/026670.html Which happens during cross-compilation (need to verify later today about antive compilation) sqlfront.h defines LPCBYTE, which is also defined in winscard.h, which is required by windows.h even on LEAN_AND_MEAN mode: if i686-w64-mingw32-gcc -DHAVE_CONFIG_H -I. -I../../../src/apps -I../../include -I../../../include -D_FREETDS_LIBRARY_SOURCE -DUNIXODBC -D_REENTRANT -D_THREAD_SAFE -DDEBUG=1 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wno-long-long -g -O2 -Wdeclaration-after-statement -MT bsqldb.o -MD -MP -MF ".deps/bsqldb.Tpo" -c -o bsqldb.o ../../../src/apps/bsqldb.c; \ then mv -f ".deps/bsqldb.Tpo" ".deps/bsqldb.Po"; else rm -f ".deps/bsqldb.Tpo"; exit 1; fi In file included from ../../../src/apps/bsqldb.c:52:0: ../../../include/sqlfront.h:39:30: error: conflicting type qualifiers for ‘LPCBYTE’ /Users/luis/mingw/w32/bin/../lib/gcc/i686-w64-mingw32/4.5.2/../../../../i686-w64-mingw32/include/winscard.h:22:23: note: previous declaration of ‘LPCBYTE’ was here make[3]: *** [bsqldb.o] Error 1 make[2]: *** [all-recursive] Error 1 make[1]: *** [all-recursive] Error 1 make: *** [all-recursive] Error 1 This do not happen with mingw.org build. Looking for this particular issue on Google, found that VC6 versus VS2005 suffered the same issue. Could mingw-w64 behavior match the VS2005 and thus affecting the assumption of sqlfront.h that LPCBYTE is missing? Any suggestion around this? I know I can check with ifndef, but wanted to be sure and be consistent if this is really required or this is a fluke. Thank you in advance. -- Luis Lavena AREA 17 - Perfection in design is achieved not when there is nothing more to add, but rather when there is nothing more to take away. Antoine de Saint-Exupéry ------------------------------------------------------------------------------ Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! Finally, a world-class log management solution at an even better price-free! Download using promo code Free_Logger_4_Dev2Dev. Offer expires February 28th, so secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsight-sfd2d _______________________________________________ Mingw-w64-public mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
