List:General Discussion« Previous MessageNext Message »
From:Sasha Pachev Date:April 28 1999 4:10pm
Subject:Re: compile with C API
View as plain text  
"ÇãÁ¤¼ö" 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)
Thread
compile with C APIwertyu28 Apr
  • Re: compile with C APIThimble Smith28 Apr
  • Re: compile with C APISasha Pachev28 Apr