Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Linker Errors in Visual Studio
Qt 6.11 is out! See what's new in the release blog

Linker Errors in Visual Studio

Scheduled Pinned Locked Moved Solved General and Desktop
2 Posts 1 Posters 522 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    SDCHal
    wrote on last edited by
    #1

    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!

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SDCHal
      wrote on last edited by
      #2

      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 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved