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. How to disable linking with Qt6EntryPoint in Visual Studio?
Forum Updated to NodeBB v4.3 + New Features

How to disable linking with Qt6EntryPoint in Visual Studio?

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 3 Posters 458 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.
  • C Offline
    C Offline
    Cupras
    wrote on last edited by
    #1

    Hello,

    i migrate a project from Qt 5 to Qt 6 in visual studio, with the qt addon.
    No i have following problem (same like here):
    "can not resolve symbol main" in Funktion ""int __cdecl qtEntryPoint(void)
    I did not know how i can avoid to link against the Qt6EntryPoint Lib in Visual Studio.
    Did anyone facing the same problem?

    Greetings,
    Markus

    jsulmJ 1 Reply Last reply
    0
    • C Cupras

      Hello,

      i migrate a project from Qt 5 to Qt 6 in visual studio, with the qt addon.
      No i have following problem (same like here):
      "can not resolve symbol main" in Funktion ""int __cdecl qtEntryPoint(void)
      I did not know how i can avoid to link against the Qt6EntryPoint Lib in Visual Studio.
      Did anyone facing the same problem?

      Greetings,
      Markus

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @Cupras If you're using CMake to manage your project then take a look at https://doc.qt.io/qt-6/cmake-target-property-qt-no-entrypoint.html

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      C 1 Reply Last reply
      1
      • jsulmJ jsulm

        @Cupras If you're using CMake to manage your project then take a look at https://doc.qt.io/qt-6/cmake-target-property-qt-no-entrypoint.html

        C Offline
        C Offline
        Cupras
        wrote on last edited by
        #3

        @jsulm Unfortunately no, everything is managed in visual studio (.sln).

        1 Reply Last reply
        0
        • A Offline
          A Offline
          AndyE0
          wrote last edited by
          #4

          I'm resurrecting this because I am facing the same issue. We are looking at Qt as a migration option from MFC (one of several). So I have VS Tools added to Visual Studio 2022. I have manually added the Qt "bits" to the relevant project file but I can't find a way of successfully adding this in to the Qt settings part for the project:

          CONFIG -= entrypoint
          

          I tried passing it on to qmake in the "Additional Command Arguments" but to no avail.

          There appears to be lots of things I could do with the "Qt Project Settings" within Visual Studio but if there's any documentation on this, I can't find it.

          TIA

          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