cURL / Mailing Lists / curl-users / Single Mail


Re: libcurl as static library

From: Daniel Stenberg <>
Date: Mon, 13 Sep 2010 19:20:29 +0200 (CEST)

On Mon, 13 Sep 2010, Cristina Gil wrote:

> Which commands do I need to compile/link statically libcurl to my program?

'man ld' or 'man gcc' or 'man cc' or otherwise read the manual for the
linker/compiler for your environment.

With some compilers you can do -static and some have -Bstatic. The main
problem tend to be that you need to provide all the dependencies manually when
you link statically.

List admin:
Received on 2010-09-13