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. Failed to build shared library on Windows
Qt 6.11 is out! See what's new in the release blog

Failed to build shared library on Windows

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 903 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.
  • T Offline
    T Offline
    tomas.soltys
    wrote on last edited by
    #1

    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 testLib.pro
    @
    TARGET = testLib
    TEMPLATE = lib

    DEFINES += TESTLIB_LIBRARY

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

    INSTALLS += target
    @

    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