Adding a library to Eclipse CDT
If you want to add a library (e.g: libxml2) to your C/C++ project in CDT Eclipse:
1. Add the library (xml2) in Project Properties -> C/C++ Build -> Settings -> GCC C Linker -> Libraries
2. Add the library directory (/usr/include/libxml2) in Project Properties -> C/C++ Build -> Settings -> GCC C Compiler -> Includes
Enjoy