Thanks for the bug report. With the changes to the linker in 11.10+, you
must be sure when compiling to specify the -llibrary arguments after the
objects that reference them.

In the case above:

gcc -o main $(xml2-config --cflags --libs) main.o

should be:

gcc -o main main.o $(xml2-config --cflags --libs)

so that the -llibrary args end up at the end of the command line. Please see 
http://wiki.debian.org/ToolChain/DSOLinking
for an overview of the changes.

** Changed in: libxml2 (Ubuntu)
       Status: New => Invalid

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1032639

Title:
  can not link against libxml2

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/libxml2/+bug/1032639/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to