From: Todd M. <tm...@sy...> - 2005-06-29 13:01:45
|
Actually, I figured it out. One of the earlier header files (written by this project team, so our bad) was using a namespace that was interfering. If I just moved the #include <windows.h> to before that header, It Just Worked. Thanks to all that offered help! Todd On Wed, Jun 29, 2005 at 09:27:34PM +1200, Danny Smith <dan...@cl...> stated: > >From: "Todd MacDermid" > >> Hey all, I'm trying to port some software to Windows, and I'm getting >> an odd error when building some files with g++: >> >> >g++ -DPACKAGE_NAME=\"cutlass\" -DPACKAGE_TARNAME=\"cutlass\" -DPACKAGE_VERSION=\ >"0.2.0\" -DPACKAGE_STRING=\"cutlass\ >0.2.0\" -DPACKAGE_BUGREPORT=\"cu...@sy...\" -DPACKAGE=\"cutlass\" -DV >ERSION=\"0.2.0\" -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHA >VE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_ST >DINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_INTTYPES_H=1 -I. -I. -I../libcutlass/include > -g -O2 -Wall -c -o crypto.o crypto.cpp >> In file included from >c:/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/windef.h:246, >> from >c:/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/windows.h:48, >> from ../libcutlass/include/cutlass/wrap_types.h:40, >> from ../libcutlass/include/cutlass.h:108, >> from crypto.cpp:16: >> c:/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/winnt.h:2030: error: >`BOOLEAN' does not name a type >> c:/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/winnt.h:2034: error: >`SECURITY_CONTEXT_TRACKING_MODE' does not name a type >> c:/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/winnt.h:2035: error: >`BOOLEAN' does not name a type >> c:/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/winnt.h:2040: error: >`BOOLEAN' does not name a type >> > >Have a look in > from ../libcutlass/include/cutlass/wrap_types.h > >and see if something touches BOOLEAN or BYTE there (maybe in a C++ typename) >Danny > > > >------------------------------------------------------- >SF.Net email is sponsored by: Discover Easy Linux Migration Strategies >from IBM. Find simple to follow Roadmaps, straightforward articles, >informative Webcasts and more! Get everything you need to get up to >speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click >_______________________________________________ >MinGW-users mailing list >Min...@li... > >You may change your MinGW Account Options or unsubscribe at: >https://lists.sourceforge.net/lists/listinfo/mingw-users |