cURL / Mailing Lists / curl-library / Single Mail


Re: Linking Error when using static library

From: Michal Marek <>
Date: Tue, 01 Apr 2008 14:14:18 +0200

Vijay wrote:
> Hi,
> When am using libcurl.a and linking my source code its giving me undefined
> references.
> But same is successfull when am using for linking.
> Please let me know how to remove this.
> Sample Error:
> home/mnagarajan/mainbranch/build/lib/libcurl.a(md5.o
> 7.18.0/lib/md5.c:348: undefined reference to `MD5_Update'

Did you forget to link the openSSL libraries? Use curl-config
--static-libs for static linking.

Received on 2008-04-01