var sidebar_align = 'right';
var content_container_margin = parseInt('290px');
var sidebar_width = parseInt('270px');
Unanswered: Getting "undefined reference" error while compiling C program connecting to MySQL
Title says it all .. I am trying to compile a C program which connects to the MySQL database server and runs a simple select query.
I am compiling on linux with following statement:
I get such errors:
gcc -I/usr/include/mysql -L/usr/lib/mysql -lmysqlclient -g database.c -o db
/home/user1/database.c:82: undefined reference to `mysql_query'
/tmp/ccZym3kC.o(.text+0x414): In function `close_Mysqlconn':
/home/user1/database.c:224: undefined reference to `mysql_close'
I have a feeling probably there something wrong with the library switches but not sure what ...... Please help