I just downloaded and installed Qt Creator. I have not messed with the PATH or any other settings. But when I try to run a Qt GUI Application project, it gives the following error:
cc1plus.exe:-1: error: error: unrecognized command line option "-fno-keep-inline-dllexport"
The output says:
Error while building/deploying project ProjectFirst (kit: Desktop Qt 5.0.1 MinGW 32bit) When executing step 'Make'
I don't understand why this is happening. I looked it up online a lot before asking, but couldn't find anything.
I've just found the problem on my friend's computer the same as yours.
Type g++ --version to see what g++ is taking by default from your path. If it is 4.4.* (<= 4.7.2) then found that old g++ and remove it to the trash. Usually it goes with Perl package, needed by Qt configure.
Then return to Console and try g++ --version again if it not 4.7.2 then lookfor old g++ again and remove it.
If it is written g++ : command not found or something like that - change your PATH variable. Don't forget to reboot your computer after changing it.
When you got g++ --version with 4.7.2, look forward to having success.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With