QTSDK4.7.4 MingW errors



  • I just update my QtSDK to version4.7.4, but when I try to build my project,building error are the following. would you guys please give me some ideas on it? someone say I need to download the mingw and install it, is it right?

    @Running build steps for project DataLayer...
    Configuration unchanged, skipping qmake step.
    Starting: "E:\QtSDK\mingw\bin\mingw32-make.exe"
    E:/QtSDK/mingw/bin/mingw32-make -f Makefile.Debug
    mingw32-make[1]: Entering directory `F:/NeoStrat/QtProjects/Source/Trunk/DataLayer-build-desktop'
    g++ -c -g -frtti -fexceptions -mthreads -Wall -DUNICODE -DQT_LARGEFILE_SUPPORT -DDATALAYER_LIBRARY -DQT_DLL -DQT_SQL_LIB -DQT_XML_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_HAVE_MMX -DQT_HAVE_3DNOW -DQT_HAVE_SSE -DQT_HAVE_MMXEXT -DQT_HAVE_SSE2 -DQT_THREAD_SUPPORT -I"e:\QtSDK\Desktop\Qt\4.7.4\mingw\include\QtCore" -I"e:\QtSDK\Desktop\Qt\4.7.4\mingw\include\QtGui" -I"e:\QtSDK\Desktop\Qt\4.7.4\mingw\include\QtXml" -I"e:\QtSDK\Desktop\Qt\4.7.4\mingw\include\QtSql" -I"e:\QtSDK\Desktop\Qt\4.7.4\mingw\include" -I"....\Trunk" -I"..\units" -I"..\Common" -I"..\AppLibrary" -I"e:\QtSDK\Desktop\Qt\4.7.4\mingw\include\ActiveQt" -I"debug" -I"..\DataLayer" -I"." -I"e:\QtSDK\Desktop\Qt\4.7.4\mingw\mkspecs\win32-g++" -o debug\Engineering.o ..\DataLayer\Engineering.cpp
    In file included from e:\qtsdk\mingw\bin../lib/gcc/mingw32/4.4.0/include/c++/iterator:61,
    from e:\QtSDK\Desktop\Qt\4.7.4\mingw\include/QtCore/qlist.h:50,
    from e:\QtSDK\Desktop\Qt\4.7.4\mingw\include\QtCore/qvariant.h:47,
    from e:\QtSDK\Desktop\Qt\4.7.4\mingw\include\QtCore/QVariant:1,
    from ..\DataLayer/NeoStratTableBase.h:4,
    from ..\DataLayer/Engineering.h:7,
    from ..\DataLayer\Engineering.cpp:1:
    e:\qtsdk\mingw\bin../lib/gcc/mingw32/4.4.0/include/c++/cstddef:51: error: '::ptrdiff_t' has not been declared
    e:\qtsdk\mingw\bin../lib/gcc/mingw32/4.4.0/include/c++/cstddef:52: error: '::size_t' has not been declared
    In file included from e:\qtsdk\mingw\bin../lib/gcc/mingw32/4.4.0/include/c++/bits/postypes.h:42,
    from e:\qtsdk\mingw\bin../lib/gcc/mingw32/4.4.0/include/c++/iosfwd:42,
    from e:\qtsdk\mingw\bin../lib/gcc/mingw32/4.4.0/include/c++/ios:39,
    from e:\qtsdk\mingw\bin../lib/gcc/mingw32/4.4.0/include/c++/ostream:40,
    from e:\qtsdk\mingw\bin../lib/gcc/mingw32/4.4.0/include/c++/iterator:65,
    from e:\QtSDK\Desktop\Qt\4.7.4\mingw\include/QtCore/qlist.h:50,
    from e:\QtSDK\Desktop\Qt\4.7.4\mingw\include\QtCore/qvariant.h:47,
    from e:\QtSDK\Desktop\Qt\4.7.4\mingw\include\QtCore/QVariant:1,
    from ..\DataLayer/NeoStratTableBase.h:4,
    from ..\DataLayer/Engineering.h:7,
    from ..\DataLayer\Engineering.cpp:1:
    @



  • It looks I did not rightly set my environmental variables. Hopefully, Some top guys can help me out.



  • fixed, because I include any including files into the namespace.what a shame!


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.