gnutls 2.10.1 doest't compile using MinGW

Simon Josefsson simon at josefsson.org
Fri Sep 23 04:59:12 CEST 2011


steamx <steamx.cn at gmail.com> writes:

> Hi all,
> I am trying to get gnutls-2.10.1 compiled on Windows XP SP2 with mingw (Gcc
> 4.5.2 + Msys 1.0.11).
> zlib1.2.3,libgpg-error1.8,libgcrypt 1.4.6,and libtasn1-2.7 all are compiled
> success.
> static version of gnutls-2.10.1 also compiled success,compiled steps are
> 1: ./configure --build=i686-pc-mingw32 --prefix=/mingw --enable-shared=no
> --enable-static=yes
> 2: make
> 3: make install
> but when i compiled shared version of gnutls-2.10.1,i got some error message
> after make.
> 1: ./configure --build=i686-pc-mingw32 --prefix=/mingw --enable-shared=yes
> --enable-static=no
> Creating library file: .libs/libgnutlsxx.dll.a
> .libs/libgnutlsxx_la-gnutlsxx.o:C:\MinGW\msys\1.0\home\gnutls-2.10.1\lib/gnutlsx
> x.cpp:881: undefined reference to `gnutls_strerror'

Do you really need the C++ library?  Try --disable-cxx.  There seems to
be some issue building the GnuTLS C++ library with MinGW.

/Simon




More information about the Gnutls-help mailing list