简体   繁体   中英

Error Qt 5.8 compiling on Visual Studio 2017 Community edition

I installed qt 5.8 with msvc2015 https://download.qt.io/official_releases/qt/5.8/5.8.0/ I also obviously download and installed the qt tools on VS and everything works just fine till now. To see if everything worked I tried to open a new project with Visual C++ ---> Qt and then selecting Qt GUI application. When I tried to compile and run the project I get different error messages on the qalgorithm.h header saying error C3615: a constexpr function cannot return a const value. A user here suggested me to see this link bugreports.qt.io/browse/QTBUG-59575 – I tried to replace the qalgorithm.h file with the one in the link. The C3615 errors disappeared but it still doesn't compile and gives me errors LNK2038 LNK2019 LNK219 LNK1120 l. It also gives me a warning : no resources in ...\\QtGuiApplication.qrc

What does that mean?

When you make big changes in .h or .c files you usually get those linker problems. Sometimes, deleting the build folder and compiling again works

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