[PLUG] help required for static linking libxml2

Shridhar Daithankar ghodechhap at ghodechhap.net
Wed May 24 17:36:53 IST 2006


On Wednesday 24 May 2006 10:59, sachin sonone wrote:
> Hi,
>
> i have following configuration.
>
> machin: Suse 7.1
> libxml2 version: 2.4.3
>
> But it doesn't support new API xmlReadMemory.
>
> for that I compile new version (2.6.19). But i want to keep previous
> installation of libxml2. I want to link new libxml2 lib statically to my
> application.

Just specify the static library with full path name at the end of link/command 
line.. something like

g++ -o program main.o /usr/local/lib/libxml.a


 Shridhar




More information about the Plug-mail mailing list