简体   繁体   中英

Run Error With Qt Creator

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.

尝试使用nmake,而不是mingw32-make

The problem is that you are using the wrong mingw32 installation (an older version).

In order to solve this, check that the Kit you use has detected the correct Mingw version (this should be 4.7, which is located inside the qt installation tools directory).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM