"ÇãÁ¤¼ö" wrote:
>
> I use MySQL 3.22.20a.
>
> When I try compile source program which use C API
>
> I got error message
>
> Undefined first referenced
> symbol in file
> __muldi3 /data1/student/c9744245/local/lib/mysql/lib
> mysqlclient.so
> __udivdi3 /data1/student/c9744245/local/lib/mysql/lib
> mysqlclient.so
> ld: fatal: Symbol referencing errors. No output written to a.out
>
> I compiled with -lmysqlclient option.
>
> The program only uses 'mysql_init(), mysql_real_connect'
>
> What's the problem
>
> Thank U for reading my poor English
>
> ye
You probably are missing -L specifying where your
libmysqlclient.a is located.
--
Sasha Pachev
http://www.sashanet.com/ (home)
http://www.direct1.com/ (work)