Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
[SOLVED] Qt 5.0.1 mingw error
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?
sahumada last edited by
which example are you compiling ? Windows 7 ?
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
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.
MuldeR last edited by
You 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 ???
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!
sahumada last edited by
fwiw .. I tested the examples on Windows 7 using 5.0.1 and they all work :) it seems like you found the root cause .. great !
imoir last edited by
Thanks for this info. I had the same problem and your info helped me out. Has this bug been reported?
[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.