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. Qt Solutions Archive
Forum Updated to NodeBB v4.3 + New Features

Qt Solutions Archive

Scheduled Pinned Locked Moved General and Desktop
3 Posts 2 Posters 4.2k Views 1 Watching
  • 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.
  • rincewindR Offline
    rincewindR Offline
    rincewind
    wrote on last edited by
    #1

    I'm looking for information on compiling the Qt/MFC Migration Framework. I'm trying to compile it in Qt Creator, but I'm getting an error:
    C:/ndk_buildrepos/qt-desktop/src/winmain/qtmain_win.cpp: 131: undefined reference to qMain(int, char**)

    I don't even have such a folder on my PC.

    Anybody with a link to some info (or first hand experience) on building this?

    Thanks.

    1 Reply Last reply
    0
    • G Offline
      G Offline
      giesbert
      wrote on last edited by
      #2

      Hi,

      are you building an executable?
      qMain is a define for main and needed if you create an executable which includes qmain.lib. qmain.lib implements the OS main methode and then calls qMain. the main you have in your main.cpp is redefined to qMain.

      Nokia Certified Qt Specialist.
      Programming Is Like Sex: One mistake and you have to support it for the rest of your life. (Michael Sinz)

      1 Reply Last reply
      0
      • rincewindR Offline
        rincewindR Offline
        rincewind
        wrote on last edited by
        #3

        The project builds a library and some examples. It seems to be giving the error when building the example. The last output line says:

        @mingw32-make.exe[1]: Leaving directory `C:/Projects/libs/qt-solutions/qtwinmigrate-build-desktop-Qt_4_7_4_for_Desktop_-_MinGW_4_4__Qt_SDK__Debug/examples' @

        What confuses me is that I get this error in the "Compile Output", but in the "Issues" window when I click on the error:

        @C:\iwmake\build_mingw_opensource\src\winmain\qtmain_win.cpp:131: error: undefined reference to `qMain(int, char**)' @

        The second line of the output changes to:

        @File not found: C:\iwmake\build_mingw_opensource\src\winmain\qtmain_win.cpp@

        I don't have such a directory, and it seems to be some hardcoded path somewhere in the make files.

        So, it seems this is a reference to the Qt source which I installed with the package manager, but I don't know (yet) how to change the path to Qt source on my machine.

        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