Solved Having trouble adding User32.lib to project as linked library.
-
Then also a silly question but, when you installed Visual Studio 2015, did you install the C++ stuff ? It's not selected by default.
-
I just did the default install, which didn't install the compilers; I knew because they didn't show up in QT Creator. I followed the instructions as here in comment 3 for question 1 in order to install the compilers. Do you think I need to install more C++ components?
-
Did you check in Qt Creator that it detects the compilers ?
-
Yup:
-
So that part is good. What about the Kits ?
-
Here 'tis... I am getting the error message from the compiler so it's obviously running. Just the library linking that's freaking out. I could pass verbose to the compiler to see if it gives more information.
-
Then it looks like you are trying to setup a 32bit debugger on your 64bit Qt.
-
The selected kit for the project is the first (default) one though.
Desktop QT 5.7.0 MSVC2015 32bit -
I'll try verbose to see if there's any more info. If not I might just witch to Visual Studio. Any major functional trade-offs to using Visual Studio vs QT Creator? I know about the plugin.
Thanks! -
Qt Creator is usually simpler to use and setup.
-
Update: I tried adding line below with success, program compiles now. Any ideas as to why QT Creator is being so ornery? Thanks again for all your help.
#pragma comment (lib, "User32.lib")