On 4/13/2012 05:11, Alex D wrote: > Hi, > When I try to compile some library I get error: > > g++ -c -O2 -frtti -fexceptions -mthreads -Wall -DUNICODE > -DQT_LARGEFILE_SUPPORT -DSERIALPORT_BUILD -DSERIALPORT_SHARED -DQT_DLL > -DQT_NO_DEBUG -DQT_CORE_LIB -DQT_HAVE_MMX -DQT_HAVE_3DNOW -DQT_HAVE_SSE > -DQT_HAVE_MMXEXT -DQT_HAVE_SSE2 -DQT_THREAD_SUPPORT > -I"c:\Qt\4.8.1\include\QtCore" -I"c:\Qt\4.8.1\include" -I"..\include" > -I"c:\Qt\4.8.1\include\ActiveQt" -I"release" > -I"c:\Qt\4.8.1\mkspecs\default" -o release\serialportengine_p_win.o > serialportengine_p_win.cpp serialportengine_p_win.cpp:54:27: fatal error: > ddk/ntddser.h: No such file or directory compilation terminated. > mingw32-make[2]: *** [release/serialportengine_p_win.o] Error 1 > mingw32-make[2]: Leaving directory `e:/tmp/qserialdevice-qserialdevice/src' > mingw32-make[1]: *** [release] Error 2 > mingw32-make[1]: Leaving directory `e:/tmp/qserialdevice-qserialdevice/src' > mingw32-make: *** [sub-src-sub_Release] Error 2 > > I've found this header in path_to_mingw\i686-pc-mingw32\include\. > But when I try to include it, I get another error: > > g++ -c -O2 -frtti -fexceptions -mthreads -Wall -DUNICODE > -DQT_LARGEFILE_SUPPORT -DSERIALPORT_BUILD -DSERIALPORT_SHARED -DQT_DLL > -DQT_NO_DEBUG -DQT_CORE_LIB -DQT_HAVE_MMX -DQT_HAVE_3DNOW -DQT_HAVE_SSE > -DQT_HAVE_MMXEXT -DQT_HAVE_SSE2 -DQT_THREAD_SUPPORT > -I"c:\Qt\4.8.1\include\QtCore" -I"c:\Qt\4.8.1\include" -I"..\include" > -I"c:\Qt\4.8.1\include\ActiveQt" -I"release" > -I"c:\Qt\4.8.1\mkspecs\default" -o release\serialportengine_p_win.o > serialportengine_p_win.cpp > In file included from serialportengine_p_win.cpp:54:0: > c:\mingw\bin\../lib/gcc/i686-pc-mingw32/4.6.3/../../../../i686-pc-mingw32/include/ntddser.h:368:2: > error: 'PHYSICAL_ADDRESS' does not name a type > mingw32-make[2]: *** [release/serialportengine_p_win.o] Error 1 > mingw32-make[2]: Leaving directory `e:/tmp/qserialdevice-qserialdevice/src' > mingw32-make[1]: *** [release] Error 2 > mingw32-make[1]: Leaving directory `e:/tmp/qserialdevice-qserialdevice/src' > mingw32-make: *** [sub-src-sub_Release] Error 2 > > I tried to include path_to_mingw\i686-pc-mingw32\include\ntdef.h with > typedef of PHYSICAL_ADDRESS. > But got the same error. > > I use a copy of PHYSICAL_ADDRESS typedef as workaround in up-level header.
Don't do that, add -I/path/to/ddk instead, and get rid of the ddk/ prefix in your include lines, its only applicable to mingw.org. mingw-w64 follows MSVC DDK conventions.
signature.asc
Description: OpenPGP digital signature
------------------------------------------------------------------------------ For Developers, A Lot Can Happen In A Second. Boundary is the first to Know...and Tell You. Monitor Your Applications in Ultra-Fine Resolution. Try it FREE! http://p.sf.net/sfu/Boundary-d2dvs2
_______________________________________________ Mingw-w64-public mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
