Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Compile with gcc 4.7 failed[solved]
Gcc 4.7 is conformant compiler with c++11 , so I want to use latest version of qt with this compiler .
I tried to compile but some errors were issued . please how can I do that
Please fix the errors and provide a patch via "Gerrit":http://codereview.qt-project.org/ .
Sorry, but with the information you provide that is the only answer that I can give.
[quote author="syrianzoro" date="1347350273"]I tried to compile but some errors were issued .[/quote]
Like Tobias said, we need more information before we can help you:
Compile what? -- Compile Qt, or compile your app?
What errors were issued?
Current Mingw version of Qt4.8.2 works fine with Mingw 4.4 , there is no Qt version for mingw say 4.7
Yes, Qt only supports GCC 4.4 for now -- there's no support for GCC 4.7 yet
The DLLs from the website were compiled with GCC 4.4
GCC 4.4 and GCC 4.7 are incompatible. If your app is compiled with GCC 4.7, you cannot link it to Qt DLLs which were compiled with GCC 4.4
Solution: Use GCC 4.7 to compile Qt yourself. See this thread for details: http://qt-project.org/forums/viewthread/20105/
thank you JKSH
Or consider an early move to Qt5, which actually benefits largely from C++11 features in GCC 4.7.