Important: Please read the Qt Code of Conduct -

Failed to build shared library on Windows

  • Hi all,

    I have this linkage problem when I try to build my shared library on windows.

    C:\MinGW\msys\1.0\src\mingw\main.c:73: error: undefined reference to `WinMain@16'

    This happens with the latest released Qt libraries 4.8.3. Previously I used 4.7 and did not experienced this problem. Above message does not appear when I include 'CONFIG += staticlib' in my *.pro file.

    Here is my
    TARGET = testLib
    TEMPLATE = lib


    SOURCES += testlib.cpp
    HEADERS += testlib.h testLib_global.h

    INSTALLS += target

Log in to reply