Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-128263

undefined reference to `WinMain'

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P0: Blocker P0: Blocker
    • 6.9.0 FF
    • 6.9.0 FF
    • Qt Interface Framework
    • None

      FAILED: examples/interfaceframework/qface-tutorial/ch5-ipc/chapter5-ipc-server.exe 
      cmd.exe /C "cd . && C:\MINGW_PATH\mingw64\bin\g++.exe -g -DNDEBUG -O2  examples/interfaceframework/qface-tutorial/ch5-ipc/simulation_server/CMakeFiles/chapter5-ipc-server.dir/chapter5-ipc-server_autogen/mocs_compilation.cpp.obj -o examples\interfaceframework\qface-tutorial\ch5-ipc\chapter5-ipc-server.exe -Wl,--out-implib,examples\interfaceframework\qface-tutorial\ch5-ipc\simulation_server\libchapter5-ipc-server.dll.a -Wl,--major-image-version,0,--minor-image-version,0  C:/Users/qt/work/install/lib/libQt6Core.a  -lmpr  -luserenv  -lkernel32 -luser32 -lgdi32 -lwinspool -lshell32 -lole32 -loleaut32 -luuid -lcomdlg32 -ladvapi32 && cd ."
      C:/MINGW_PATH/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/MINGW_PATH/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.1.0/../../../../x86_64-w64-mingw32/lib/../lib/libmingw32.a(lib64_libmingw32_a-crtexewin.o):crtexewin.c:(.text.startup+0xbd): undefined reference to `WinMain'
      collect2.exe: error: ld returned 1 exit status
      

      Build log: https://testresults.qt.io/logs/qt/qtinterfaceframework/38b799e52c042a6d7050f5481f6fb92489ac7761/WindowsWindows_11_23H2x86_64WindowsWindows_11_23H2x86_64Mingwqtci-windows-11_23H2-x86_64-53-da5dbdSccache_StandaloneExamples_UseConfigure_WarningsAreErrors/3230be33e2e1a03447a0341ec5d2398cb9448adf/build_1724285578/log.txt.gz

      Details: https://testresults.qt.io/coin/integration/qt/qtinterfaceframework/tasks/1724285530

      Tested changes (refs/builds/qtci/dev/1724280662):
      https://codereview.qt-project.org/c/qt/qtinterfaceframework/+/583183/4 Update dependencies on 'dev' in qt/qtinterfaceframework

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            gagi Dominik Holland
            janihe Jani Heikkinen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes