[SOLVED] Qt 5.0.1 mingw error
-
Hi!
I downloaded the newly released "Qt 5.0.1 mingw":http://releases.qt-project.org/qt5/5.0.1/qt-windows-opensource-5.0.1-mingw47_32-x86-offline.exe and tried to run the examples.
Unfortunately, I am getting error
@cc1plus.exe: error: unrecognized command line option "-fno-keep-inline-dllexport"@
What is the solution for this?
-
I tried 5 of them but they still "throw" the same error so I stopped, thinking that it will actually happen to all of them regardless of simplicity or complexity of the examples. Here is the list:
- application example
- basic layouts example
- border layout example
- camera
- youtubeview
BTW. I am using windows 7 32-bit
EDIT: Just to add up, even a normal create new Gui Application in Qt Creator cannot be compiled and throws the same error. AFAIK, mingw4.7 is packaged with Qt 5.0.1 ...and Qt Creator detects it as usual.
-
Do you us an up-to-date MinGW ???
http://sourceforge.net/projects/mingwbuilds/files/host-windows/releases/4.7.2/32-bit/threads-posix/sjlj/x32-4.7.2-release-posix-sjlj-rev8.7z/downloadYou can also try to edit "mkspecs/win32-g++/qmake.conf" and remove the problematic option from CFLAGS.
-
[quote author="MuldeR" date="1359684251"]Do you us an up-to-date MinGW ???
[/quote]I think it is already packaged with Qt 5.0.1.
[quote author="MuldeR" date="1359684251"]
You can also try to edit "mkspecs/win32-g++/qmake.conf" and remove the problematic option from CFLAGS.[/quote]More errors! Should I post the output here?
-
I solved it now. Might be a bug in Qt Creator "using" the wrong MinGW compiler added somewhere in my C:/Perl/site/bin/g++.exe which is actually a MinGW 4.4.
I can't reset it since it was "auto-detected" so what I did was to "clone" it and link it to the right compiler packaged with Qt 5.0.1.
Thanks for the help. It gave me a clue!
-
[quote author="imoir" date="1361584798"]Thanks for this info. I had the same problem and your info helped me out. Has this bug been reported?[/quote]
Not yet... Sorry but I am too preoccupied right now. If you have "free time", PLEASE feel free to report it. Thanks.