cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Linking Error when using static library

From: Michal Marek <mmarek_at_suse.cz>
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 libcurl.so for linking.
> Please let me know how to remove this.
>
> Sample Error:
> home/mnagarajan/mainbranch/build/lib/libcurl.a(md5.o
>
)(.text+0x2b):/home/mnagarajan/mainbranch/DGProject/DGSource/HttpBillingAgent/curl-
> 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.

Michal
Received on 2008-04-01