Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Failed to build shared library on Windows
tomas.soltys last edited by
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 testLib.pro
TARGET = testLib
TEMPLATE = lib
DEFINES += TESTLIB_LIBRARY
SOURCES += testlib.cpp
HEADERS += testlib.h testLib_global.h
INSTALLS += target