Database Connection in Nsight

Hi All,

I have a problem about database connection with nsight eclipse edition.I’m tring to get connection between PostgreSql and my c++ project on Nsight(on UBUNTU).I installed libpqxx library and compile my code.I got lots of error like that:

usr/local/include/pqxx/connection.hxx:87: undefined reference to pqxx::connectionpolicy::connectionpolicy(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)' /usr/local/include/pqxx/connection.hxx:87: undefined reference to vtable for pqxx::connect_direct’
/usr/local/include/pqxx/connection.hxx:84: undefined reference to vtable for pqxx::connect_direct' /usr/local/include/pqxx/connection.hxx:84: undefined reference to pqxx::connectionpolicy::~connectionpolicy()’
makefile:58: recipe for target ‘testConnection’ failed

Do you have any idea to solve these problems? or Could you explain how can I get connection between my project and PostreSql.

Thank You For Help