[PLUG] help required for static linking libxml2

sachin sonone sachintalk at hotmail.com
Thu May 25 00:14:13 PDT 2006


Hi, 
thanks for helping.

g++ -o program main.o /usr/local/lib/libxml.a
this will increase my binary size.
I like to link libxml.so.

g++ -o program main.o /usr/local/lib/new_libxml.so

application compiles properly. then I copy new_libxml.so to /usr/lib
while executing appliation it uses old version of libxml and gives error for new API.

Regards,
sachin.

>>
>> 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




More information about the plug-mail mailing list