[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: |
Tony Theodore |
Subject: |
Re: [Mingw-cross-env-list] Linker error when compiling a Qt application |
Date: |
Sat, 11 May 2013 12:23:49 +1000 |
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