mysql + си
пните в сторону где можно почитать про работу си с мускулом?
Пользуемся поиском!
http://www.codenet.ru/db/mysql/mysql/c_api.php
bash-2.05b# gcc -I/usr/local/include/mysql/ -L/usr/local/lib/mysql/lib mysql.c
/var/tmp//ccWKz7hj.o(.text+0x12): In function `exiterr':
: undefined reference to `mysql_error'
/var/tmp//ccWKz7hj.o(.text+0x70): In function `main':
: undefined reference to `mysql_connect'
/var/tmp//ccWKz7hj.o(.text+0x96): In function `main':
: undefined reference to `mysql_select_db'
/var/tmp//ccWKz7hj.o(.text+0xbc): In function `main':
: undefined reference to `mysql_query'
/var/tmp//ccWKz7hj.o(.text+0xdd): In function `main':
: undefined reference to `mysql_store_result'
/var/tmp//ccWKz7hj.o(.text+0x109): In function `main':
: undefined reference to `mysql_fetch_row'
/var/tmp//ccWKz7hj.o(.text+0x12f): In function `main':
: undefined reference to `mysql_num_fields'
/var/tmp//ccWKz7hj.o(.text+0x16e): In function `main':
: undefined reference to `mysql_eof'
/var/tmp//ccWKz7hj.o(.text+0x190): In function `main':
: undefined reference to `mysql_free_result'
/var/tmp//ccWKz7hj.o(.text+0x1a0): In function `main':
: undefined reference to `mysql_close'
попробовал собрать исходник как в примере
bash-2.05b# gcc -I/usr/local/include/mysql/ -L/usr/local/lib/mysql/lib mysql.c
/var/tmp//ccWKz7hj.o(.text+0x12): In function `exiterr':
: undefined reference to `mysql_error'
/var/tmp//ccWKz7hj.o(.text+0x70): In function `main':
: undefined reference to `mysql_connect'
/var/tmp//ccWKz7hj.o(.text+0x96): In function `main':
: undefined reference to `mysql_select_db'
/var/tmp//ccWKz7hj.o(.text+0xbc): In function `main':
: undefined reference to `mysql_query'
/var/tmp//ccWKz7hj.o(.text+0xdd): In function `main':
: undefined reference to `mysql_store_result'
/var/tmp//ccWKz7hj.o(.text+0x109): In function `main':
: undefined reference to `mysql_fetch_row'
/var/tmp//ccWKz7hj.o(.text+0x12f): In function `main':
: undefined reference to `mysql_num_fields'
/var/tmp//ccWKz7hj.o(.text+0x16e): In function `main':
: undefined reference to `mysql_eof'
/var/tmp//ccWKz7hj.o(.text+0x190): In function `main':
: undefined reference to `mysql_free_result'
/var/tmp//ccWKz7hj.o(.text+0x1a0): In function `main':
: undefined reference to `mysql_close'
а путь к библиотекам верно указан?
да все пути указаны верно