> 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...
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
|• New at this||Net-Lynx||9 Jun|
| • Re: New at this||Sasha Pachev||9 Jun|