Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QTSDK4.7.4 MingW errors

QTSDK4.7.4 MingW errors

Scheduled Pinned Locked Moved General and Desktop
3 Posts 1 Posters 2.1k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    pmjz
    wrote on last edited by
    #1

    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:
    @

    1 Reply Last reply
    0
    • P Offline
      P Offline
      pmjz
      wrote on last edited by
      #2

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

      1 Reply Last reply
      0
      • P Offline
        P Offline
        pmjz
        wrote on last edited by
        #3

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

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved