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

andy fillebrown andy.fillebrown at gmail.com
Wed Nov 14 14:51:48 CET 2012


Thanks.  That worked for me, too.

Cheers,
~ andy.f



On Thu, Nov 8, 2012 at 9:12 AM, Carel Combrink <carel.combrink at gmail.com> wrote:
> Hi,
>
> 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,
> Regards,
> Carel
>
> 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
>
>



More information about the Interest mailing list