Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. unresolved external symbol for "qt_check_for_QGADGET_macro" function
Forum Updated to NodeBB v4.3 + New Features

unresolved external symbol for "qt_check_for_QGADGET_macro" function

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
2 Posts 2 Posters 581 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.
  • H Offline
    H Offline
    horokey
    wrote on last edited by horokey
    #1

    Hello, everybody.

    I tried to compile Qt 5.6.0 from sources using the MSVC 2008 and during the process i got the following errors:

    link /NOLOGO /DYNAMICBASE /NXCOMPAT /INCREMENTAL:NO /DLL /LTCG /SUBSYSTEM:WINDOWS /VERSION:5.6 /MANIFEST /MANIFESTFILE:..\..\lib\Qt5Gui.dll.embed.manifest /OUT:..\..\lib\Qt5Gui.dll @C:\Users\nikbol\AppData\Local\Temp\nmB1F7.tmp
    
    Creating library ..\..\lib\Qt5Gui.lib and object ..\..\lib\Qt5Gui.exp
    
    qguivariant.obj : error LNK2001: unresolved external symbol "public: void __thiscall QFont::qt_check_for_QGADGET_macro(void)" (?qt_check_for_QGADGET_macro@QFont@@QAEXXZ)
    qguivariant.obj : error LNK2001: unresolved external symbol "public: void __thiscall QPalette::qt_check_for_QGADGET_macro(void)" (?qt_check_for_QGADGET_macro@QPalette@@QAEXXZ)
    qguivariant.obj : error LNK2001: unresolved external symbol "public: void __thiscall QKeySequence::qt_check_for_QGADGET_macro(void)" (?qt_check_for_QGADGET_macro@QKeySequence@@QAEXXZ)
    qguivariant.obj : error LNK2001: unresolved external symbol "public: void __thiscall QTextFormat::qt_check_for_QGADGET_macro(void)" (?qt_check_for_QGADGET_macro@QTextFormat@@QAEXXZ) 
    
    ..\..\lib\Qt5Gui.dll : fatal error LNK1120: 4 unresolved externals
    

    It seems to me, that the problem is with LTCG flag, that i used for configration. But the only thing i was able to find, is just not to use it.

    My build script:
    call "C:\Program Files\Microsoft Visual Studio 9.0\VC\vcvarsall.bat" x86
    SET _ROOT=D:\_myDocs\qt-everywhere-opensource-src-5.6.0\src
    SET PATH=%_ROOT%\qtbase\bin;%_ROOT%\gnuwin32\bin;%PATH%
    SET QMAKESPEC=win32-msvc2008
    SET _ROOT=

    call ../src/configure.bat -opengl desktop -opensource -debug-and-release -mp -ltcg -nomake examples -nomake tests -no-icu -confirm-license

    1 Reply Last reply
    0
    • S Offline
      S Offline
      Sync
      wrote on last edited by
      #2
      This post is deleted!
      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