List:General Discussion« Previous MessageNext Message »
From:Sasha Pachev Date:June 4 1999 2:24am
Subject:Re: Problem with mysql in irix 6.5.4
View as plain text  
Moises Alencastre Miranda wrote:
> 
> Hi!
> 
> I am starting to use mysql in a Sgi O2 workstation with Irix 6.5.4, I had
> installed the mysql, and create tables and others things.
> But, when I tried to make a program test in "c" for read the tables in the
> database I obtained the next:
> 
> coronel 31% cc -32 -L./lib/mysql -lmysqlclient -o agenda2 agenda2.c ld:
> WARNING 84: ./lib/mysql/libmysqlclient.so is not used for resolving any
> symbol.  ld: WARNING 85: definition of opterr in
> ./lib/mysql/libmysqlclient.so preempts that definition in
> /usr/lib/libc.so.
> ld: WARNING 85: definition of optind in
> ./lib/mysql/libmysqlclient.so preempts that definition in
> /usr/lib/libc.so.
> ld: WARNING 85: definition of optopt in
> ./lib/mysql/libmysqlclient.so preempts that definition in
> /usr/lib/libc.so.
> ld: WARNING 85: definition of optarg in
> ./lib/mysql/libmysqlclient.so preempts that definition in
> /usr/lib/libc.so.
> ld: ERROR 33: Unresolved text symbol "mysql_init" -- 1st
> referenced by agenda2.o.
> ld: ERROR 33: Unresolved text symbol
> "mysql_real_connect" -- 1st referenced by agenda2.o.
> ld: ERROR 33: Unresolved text symbol "mysql_real_query" -- 1st referenced by
> agenda2.o.
> ld: ERROR 33: Unresolved text symbol "mysql_store_result" -- 1st
> referenced by agenda2.o.
> ld: ERROR 33: Unresolved text symbol
> "mysql_fetch_row" -- 1st referenced by agenda2.o.
> ld: ERROR 33: Unresolved text symbol "mysql_close" -- 1st referenced by
> agenda2.o.
> ld: INFO 60: Output file removed because of error.
> 
> This works fine in linux box, but in sgi no.
> Somebody Can help me with this?
> 
> Thanks
> 
> Moises Alencastre Miranda
> 

Put -lmysqlclient at the end of the command line, that should solve the
problem.

-- 
Sasha Pachev
http://www.sashanet.com
Thread
Problem with mysql in irix 6.5.4Moises Alencastre Miranda4 Jun
  • Re: Problem with mysql in irix 6.5.4Sasha Pachev4 Jun