List:General Discussion« Previous MessageNext Message »
From:Sasha Pachev Date:June 8 1999 10:45pm
Subject:Re: New at this
View as plain text  
Net-Lynx wrote:
> 
> Hi All,
> 
>   I'm new to using MySql and am having a bit of trouble getting off
>   the ground...
> 
>   I'm writting a C script but can't even compile.
> 
>   Here's the compile statement I'm using:
> 
> gcc -o catalog.cgi cgi.c catalog.c -lmysqlclient -L/usr/local/lib/mysql
> 
> and the error messages I'm getting:
> 
> /usr/local/lib/mysql/libmysqlclient.a(password.o): In function `scramble':
> /mnt/dump/mysql-3.21.33b/client/password.c:128: undefined reference to `floor'
> /mnt/dump/mysql-3.21.33b/client/password.c:131: undefined reference to `floor'
> /usr/local/lib/mysql/libmysqlclient.a(password.o): In function `check_scramble':
> /mnt/dump/mysql-3.21.33b/client/password.c:157: undefined reference to `floor'
> /mnt/dump/mysql-3.21.33b/client/password.c:161: undefined reference to `floor'
> 
> The latest version of MySql I'm using is 3.21.33b-log or at least
> that's what the version() function returns...
> 
> Any ideas??! Any help would be appreciated...
> 
> Later,
> Jorge
> mailto:santos@stripped
> 

To solve the current problem, use -lm
To get rid of the next error you are going to get after you've added
-lm, put -L/usr/local/lib/mysql BEFORE -lmysqlclient


-- 
Sasha Pachev
http://www.sashanet.com/ (home)
http://www.direct1.com/ (work)
Thread
New at thisNet-Lynx9 Jun
  • Re: New at thisSasha Pachev9 Jun