Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Visual Studio can compile but can't link Qt references

Visual Studio can compile but can't link Qt references

Scheduled Pinned Locked Moved Solved Qt Creator and other tools
3 Posts 2 Posters 367 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.
  • A Offline
    A Offline
    aarash
    wrote on last edited by
    #1

    I have a c++ solution that uses Qt classes. I have Qt6.2.2 installed. I ported this solution to VS 2019 and have Qt extension installed. I provided all paths to Qt includes and also the QtCore like below screenshot:
    2039f4fd-28c2-48ef-87de-06e9ff37b143-image.png

    Project compiles fine, but can't link with any of Qt objects although it has path to Qt libs. What's missing?
    Here's the errors
    3b0d2a11-b307-4567-af26-3851db6edd18-image.png

    1 Reply Last reply
    0
    • Christian EhrlicherC Online
      Christian EhrlicherC Online
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on last edited by
      #2

      You compile a 32Bit executable but link against 64bit libs.
      Compile your app with 64bits.

      Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
      Visit the Qt Academy at https://academy.qt.io/catalog

      A 1 Reply Last reply
      2
      • Christian EhrlicherC Christian Ehrlicher

        You compile a 32Bit executable but link against 64bit libs.
        Compile your app with 64bits.

        A Offline
        A Offline
        aarash
        wrote on last edited by
        #3

        @Christian-Ehrlicher Thank you for quick response! I changed the app to x64 and all Qt reference errors was resolved.

        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