[Interest] Qt 4.8.3 MinGW 4.4.0 undefined reference to WinMain at 16 with TEMPLATE = lib

Carel Combrink carel.combrink at gmail.com
Thu Nov 8 15:12:02 CET 2012


I have also found the same problem (yesterday). You can try to do the
following (worked for me)

Add the following to your pro/pri file:
CONFIG += dll

Hope that helps,

On Thu, Nov 8, 2012 at 3:23 PM, andy fillebrown
<andy.fillebrown at gmail.com>wrote:

> Hi,
> I'm getting undefined references to WinMain at 16 when building my
> libraries with Qt 4.8.3 using the provided MinGW 4.4.0 toolchain.  I
> did some searching but all I could find was QTBUG-27227, which isn't
> very helpful since I don't want to build in the source tree.  I don't
> mind hacking on the mkspecs if that's the issue, but I can't find any
> info on how to fix this issue locally.  Is it a qmake issue?  How can
> I fix it?
> Cheers,
> ~ andy.f
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20121108/6554dc7e/attachment.html>

More information about the Interest mailing list