List:General Discussion« Previous MessageNext Message »
From:Paul DuBois Date:March 19 1999 9:02pm
Subject:Re: [MySQL] link error
View as plain text  
At 2:54 PM -0600 3/19/1999, RaymanJ@stripped wrote:
>	I am testing out how to connect to MySQL with a C program.  This is
>the first
>time for me to do this.
>	Problem:
>		When ever I compile my program it gives me an error message
>as below.
>/var/tmp/ccyP17051.o: Undefined symbol `_mysql_connect' referenced from text

You need to add -lmysqlclient to your link command.  If the library is
stored in a non-standard place, you may need to precede that argument
with -L/path/to/non-standard/place so the linker can find it.

Paul DuBois, paul@stripped
Northern League Chronicles:
[MySQL] link errorRaymanJ19 Mar
  • Re: [MySQL] link errorPaul DuBois19 Mar
  • Re: [MySQL] link errorThimble Smith19 Mar
  • Re: [MySQL] link errorWade Maxfield19 Mar