mingw-cross-env-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Mingw-cross-env-list] Linker error when compiling a Qt application


From: Saikrishna Arcot
Subject: Re: [Mingw-cross-env-list] Linker error when compiling a Qt application
Date: Fri, 10 May 2013 21:28:39 -0500
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130404 Thunderbird/17.0.5

-lcrypt32 seems to be in the line ("-lQtGui -lpq -lsecur32 -lssl
-lcrypto -lcrypt32"). Does order matter here?

I'll see what I can do with pkg-config.

Saikrishna Arcot

On 05/10/2013 09:23 PM, Tony Theodore wrote:
> On 09/05/2013, at 1:10 PM, Saikrishna Arcot <address@hidden> wrote:
>
>> Hi,
>>
>> I'm getting a linker error when linking a Qt application. Here is the 
>> command output:
> […]
>> -L'<MXE_dir>/usr/i686-pc-mingw32/qt/lib' -lmingw32 -lqtmain 
>> <DEST_dir>/Kumon_Inventory_resource_res.o -lQtSql -lQtGui -lpq -lsecur32 
>> -lssl -lcrypto -lcrypt32 -lodbc32 -lsybdb -lgnutls -lnettle -lhogweed -lgmp 
>> -liconv -lsqlite3 -lgdi32 -lcomdlg32 -loleaut32 -limm32 -lwinmm -lwinspool 
>> -lmsimg32 -lmng -llcms -L<MXE_dir>/usr/i686-pc-mingw32/lib -ltiff -llzma 
>> -ljpeg -lQtCore -lpng -lole32 -luuid -lws2_32 -ladvapi32 -lshell32 -luser32 
>> -lkernel32 -lz 
> I believe it's missing "-lcrypt32" which should be placed towards the end of 
> the specified libs. Check the output of "i686-pc-mingw-32-pkg-config --libs 
> gnutls" and see if you can configure your build system to use pkg-config as 
> we patch this in for mxe.
>
> Cheers,
>
> Tony
>




reply via email to

[Prev in Thread] Current Thread [Next in Thread]