If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > Delphi, C etc > Error in C while connecting mysql

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-09-04, 17:34
Rohan_mysql Rohan_mysql is offline
Registered User
 
Join Date: Apr 2004
Posts: 1
Error in C while connecting mysql

hello,

I am using Redhat 9.0, and have installed mysql-3.23.58,
now when i try to compile C program which uses mysql functions,
i got the following error messages


[root@rohans Mysqlpgms]# gcc -o first first.c -I/usr/local/mysql/include/ -L/usr/local/mysql/lib/ -lmysqlclient
/usr/local/mysql/lib//libmysqlclient.a(my_compress.o)(.text+0xb4): In function `my_compress_alloc':
: undefined reference to `compress'
/usr/local/mysql/lib//libmysqlclient.a(my_compress.o)(.text+0x12a): In function `my_uncompress':
: undefined reference to `uncompress'
collect2: ld returned 1 exit status

what could be reason for this
Plz tell me.....

Regards
Rohan Shrivastava
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On