GCC C + libxml2 Cross Compile

Hello!

I’m writing a little program in C with Eclipse using the serial port. Now i wan’t to provide the sensor data from the serial port to a Web-GUI with a XML file. Everything works fine until i use an external lib like libxml2.
The code is written in a VM on Ubuntu 12.04 with a custom run configuration to the Beaglebone Black (Debian Wheezy 7.5). That’s working good, but the only problem is, how to get the libxml2 working…
I can include all the header files from the libmxl2, but then it comes to problems at the linking.

Thank you for your help!