slaiyer
July 23rd, 2009, 04:03 PM
Hello,
I have been continuously searching for methods of getting my compiler to compile sql code from mysql or postgresql.
I started with anjuta and mysql and i kept getting
undefined refrence "mysql_init"
undefined refrence "mysql_real_connect"
undefined refrence "mysql_error"
when i try to build. I then tried everything, from adding the include files to adding the library files, till i gave up and download Netbeans.
The it was the same error with Netbeans IDE 6.5, so i decided to try postgresql, and i see to be facing the same errors, even after adding the includes and library files also.
/home/wanjohi/test/testing/main.cc:17: undefined reference to `PQconnectdb'
/home/wanjohi/test/testing/main.cc:22: undefined reference to `PQstatus'
so could some one please point out where i am going wrong with the compiler?
and yes i do call all the right headers, this is after 2 days of internet searching and even trying sample codes which give the same error too.
using ubuntu 9.04
I have been continuously searching for methods of getting my compiler to compile sql code from mysql or postgresql.
I started with anjuta and mysql and i kept getting
undefined refrence "mysql_init"
undefined refrence "mysql_real_connect"
undefined refrence "mysql_error"
when i try to build. I then tried everything, from adding the include files to adding the library files, till i gave up and download Netbeans.
The it was the same error with Netbeans IDE 6.5, so i decided to try postgresql, and i see to be facing the same errors, even after adding the includes and library files also.
/home/wanjohi/test/testing/main.cc:17: undefined reference to `PQconnectdb'
/home/wanjohi/test/testing/main.cc:22: undefined reference to `PQstatus'
so could some one please point out where i am going wrong with the compiler?
and yes i do call all the right headers, this is after 2 days of internet searching and even trying sample codes which give the same error too.
using ubuntu 9.04