List:General Discussion« Previous MessageNext Message »
From:Paul DuBois Date:June 9 1999 3:08pm
Subject:Re: mysql_real_connect problem??
View as plain text  
>Paul,
>
>    Thanks very much for your quick responses and suggestions.  I went ahead
>and tried the combination you suggested -- I deleted the db argument, and
>tried to compile by specifying -lmysqlclient instead of -lmysql.  Here's
>what I got back
>
>#  cc -o mysql_connect mysql_connect.c -lc -lmysqlclient
>undefined                       first referenced
> symbol                             in file
>mysql_init                          mysql_connect.o
>mysql_real_connect                  mysql_connect.o
>i386ld fatal: Symbol referencing errors. No output written to mysql_connect
>
>
>#cc -o mysql_connect mysqlconnect.c -lc -L/u/april/mysql -lmysqlclient
><
>undefined                       first referenced
> symbol                             in file
>mysql_init                          mysql_connect.o
>mysql_real_connect                  mysql_connect.o
>i386ld fatal: Symbol referencing errors. No output written to mysql_connect
>
>
>  Any thoughts on this, Paul, or anyone else?

You need to tell us whether or not you do have a libmysqlclient.a on
your machine.  Since you appear to have mysql.h, I'm guessing you
do.  But what directory is it in?

--
Paul DuBois, paul@stripped
Northern League Chronicles: http://www.snake.net/nl/
Thread
mysql_real_connect problem??April Escamilla9 Jun
  • Re: mysql_real_connect problem??Paul DuBois9 Jun
Re: mysql_real_connect problem??April Escamilla9 Jun
  • Re: mysql_real_connect problem??Paul DuBois9 Jun
Re: mysql_real_connect problem??April Escamilla9 Jun
  • Re: mysql_real_connect problem??Paul DuBois9 Jun
  • Re: mysql_real_connect problem??Michael Widenius9 Jun
Re: mysql_real_connect problem??April Escamilla9 Jun
  • Re: mysql_real_connect problem??Paul DuBois9 Jun
Re: mysql_real_connect problem??April Escamilla9 Jun
  • Re: mysql_real_connect problem??Paul DuBois9 Jun
Re: mysql_real_connect problem??April Escamilla9 Jun
  • Re: mysql_real_connect problem??Sasha Pachev9 Jun
Re: mysql_real_connect problem??April Escamilla9 Jun
  • Re: mysql_real_connect problem??Paul DuBois10 Jun
  • Re: mysql_real_connect problem??Sasha Pachev10 Jun
Re: mysql_real_connect problem??April Escamilla10 Jun
  • Re: mysql_real_connect problem??Sasha Pachev10 Jun
Re: mysql_real_connect problem??April Escamilla10 Jun
Re: mysql_real_connect problem??April Escamilla10 Jun
Re: mysql_real_connect problem??April Escamilla10 Jun
  • Re: mysql_real_connect problem??Sasha Pachev10 Jun
Re: mysql_real_connect problem??April Escamilla10 Jun
  • Re: mysql_real_connect problem??Paul DuBois10 Jun
  • Re: mysql_real_connect problem??Sasha Pachev10 Jun
Re: mysql_real_connect problem??April Escamilla11 Jun
  • Re: mysql_real_connect problem??Sasha Pachev11 Jun