cURL / Mailing Lists / curl-library / Single Mail

curl-library

Undefined symbols when compiling on Windows (MinGW)

From: Vincent Torri <vincent.torri_at_gmail.com>
Date: Fri, 26 Feb 2010 09:40:14 +0100

Hey,

md5.c uses explicitely gcrypt functions (gcryp_md_open() for example) when
gnutls is used. On Windows, all symbols must be explicitely defined. It
means
that you must pass -lgcrypt to the linker, otherwise there will be undefined
references.

So in configure.ac, if gnutls is chosen, libbgcrypt must be checked (maybe
using also an option to set the path), and -lgrypt must be added to linker
flags.

regards

Vincent Torri

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2010-02-26