Dietmar Braun wrote:
> Hi,
> 
> Wednesday, March 19, 2008, 6:06:25 PM, you wrote:
>>> Which test program?
> 
>> I sent it to the list on Mar 10.  You can get it from the list archives,
>> or I can send it to you if you want.
> 
> Hm, I am getting errors while compiling it:
> 
> /tmp/ccYisHFt.o: In function `main':
> bug.c:(.text+0x19): undefined reference to `mysql_init'
> bug.c:(.text+0x63): undefined reference to `mysql_real_connect'
> /tmp/ccYisHFt.o: In function `run_long_query':
> bug.c:(.text+0x165): undefined reference to `mysql_query'
> bug.c:(.text+0x192): undefined reference to `mysql_store_result'
> bug.c:(.text+0x1a0): undefined reference to `mysql_fetch_row'
> /tmp/ccYisHFt.o: In function `run_short_query':
> bug.c:(.text+0x1d9): undefined reference to `mysql_query'
> bug.c:(.text+0x1e6): undefined reference to `mysql_store_result'
> bug.c:(.text+0x203): undefined reference to `mysql_fetch_row'
> collect2: ld returned 1 exit status

Those look like the errors you get when not including the mysql client 
libraries.

You need to add -lmysqlclient and probably a -L statement too.

Dan

> Regards,
> Dietmar
> 

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
policyd-users mailing list
policyd-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/policyd-users

Reply via email to