Linker Errors in Visual Studio
-
wrote on 24 Sept 2022, 16:18 last edited by
I am using (or trying to use) Qt 6.3.2 with Visual Studio 2019 but I keep getting linker errors and I can't figure out why. My project file includes QT+= core gui widgets and I can see all of the libraries listed in my project properties. My configurations match (I was previously using Qt5 and removed it and put in Qt6 because I kept getting mismatched configurations and figured upgrading would take me about as long as trying to fix it). Does anyone know what else I could try? The errors are all for Qt libraries and the program is just opening a basic window.
Thanks!
-
wrote on 24 Sept 2022, 19:50 last edited by
Turns out it was a few things. I copied all of my project settings from an old project to explicitly reference any libraries I was missing (and saved the properties to a file for future use). Also had to make sure the project was using C++17, not 14 AND I had to set some compiler options in the command line. Those can be found here:
https://stackoverflow.com/questions/70373606/how-to-fix-qt-requires-a-c17-compiler
1/2