안녕하세요. mysql응용프로그램을 작성하려고 하는데요..
우선 소스는(가장기본)
#include
#include

#include "mysql.h"

int main(int argc, char *argv[]) {
MYSQL *conn_ptr;

conn_ptr=mysql_init(NULL);

if(!conn_ptr) {
fprintf(stderr, "mysql_init failed
");
return EXIT_FAILURE;
}

conn_ptr=mysql_real_connect
(conn_ptr,"localhost","root","xxxx","rinijun",0,NULL,0);

if(conn_ptr) {
printf("Connetion success
");
} else {
printf("Connection Failed
");
}

mysql_close(conn_ptr);

return EXIT_SUCCESS;
}

이렇게 되구요 컴파일 옵션은
arm-linux-gcc connect1.c -o connect1 -lmysqlclient -I/usr/local/arm-
linux/arm-linux/include/mysql -L/usr/local/arm-linux/arm-linux/lib -
L/usr/local/arm-linux/arm-linux/lib/mysql -L/usr/local/arm-linux/arm-
linux/lib

PATH는 /usr/local/arm-linux/bin으로 되어있구요
mysqlclient 오브젝트 파일은 요피에서 꺼내다가 카피해 놓았습니다.
에러메세지가
/usr/local/arm-linux/arm-linux/lib/mysql/libmysqlclient.so: undefined
reference to `__lxstat64@GLIBC_2.2'
/usr/local/arm-linux/arm-linux/lib/mysql/libmysqlclient.so: undefined
reference to `readdir64@GLIBC_2.2'
/usr/local/arm-linux/arm-linux/lib/mysql/libmysqlclient.so: undefined
reference to `__fxstat64@GLIBC_2.2'
/usr/local/arm-linux/arm-linux/lib/mysql/libmysqlclient.so: undefined
reference to `mkstemp64@GLIBC_2.2'
/usr/local/arm-linux/arm-linux/lib/mysql/libmysqlclient.so: undefined
reference to `gethostbyname_r@GLIBC_2.1.2'
/usr/local/arm-linux/arm-linux/lib/mysql/libmysqlclient.so: undefined
reference to `__xstat64@GLIBC_2.2'
collect2: ld returned 1 exit status
이렇게 에러가 나네요. 음.. 이거때매 오늘 하루종일 삽질하구 있습니다.도와
주세요 ㅜㅜ