Quantcast
Channel: Qt DevNet forums: Installation and Deployment
Viewing all articles
Browse latest Browse all 2113

Error compiling with Qt 5.1.1 Mingw 4.8 on Windows 7

$
0
0
Hi Guys, I just installed QT 5.1.1 with QT creator and MingW 4.8 on windows 7 32 bit. I am able to build and run sample applications. I created a Qt console app. in runs file with only main.cpp. I added a class that inherits QObject. It works fine. I added another such class, and it refuses to build. It builds (fine If I don’t derive from QObject and don’t use QT types as data members.) Getting a long list of errors like: (I also noticed that moc files are not generated anywhere, even for any examples) e:\qt\qt5.1.1\tools\mingw48_32\lib\gcc\i686-w64-mingw32\4.8.0\include\c++\bits\locale_classes.h:307: error: ‘__gthread_once_t’ does not name a type static __gthread_once_t _S_once; ^ e:\qt\qt5.1.1\tools\mingw48_32\lib\gcc\i686-w64-mingw32\4.8.0\include\c++\bits\locale_classes.h:344: error: ‘_Atomic_word’ does not name a type mutable _Atomic_word _M_refcount; ^

Viewing all articles
Browse latest Browse all 2113

Trending Articles