[an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive]
 
[an error occurred while processing this directive] [an error occurred while processing this directive]
Skåne Sjælland Linux User Group - http://www.sslug.dk Home   Subscribe   Mail Archive   Forum   Calendar   Search
MhonArc Date: [Date Prev] [Date Index] [Date Next]   Thread: [Date Prev] [Thread Index] [Date Next]   MhonArc
 

Undefined reference to mysql_real_connect



Jeg har fået lidt problemer med at linke mod libmysqlclient. Efter, for et
stykke tid siden, at have skiftet fra Red Hat's mysql RPM'er (3.23.x) til
mysql.org's (4.0.20-0), får jeg undefined references ved linking.

Dist: Fedora Core 2

Lidt output:

cc -L/usr/lib/mysql -lpthread -lmysqlclient_r -lnsl -lz -lm -lcrypt -o
mp3dbd mp3dbd.o dazukoio.a
mp3dbd.o(.text+0x52e): In function `main_loop':
/home/sng/Work/Programming/C/mp3dbd.c:183: undefined reference to
`mysql_thread_end'
mp3dbd.o(.text+0x58a): In function `main':
/home/sng/Work/Programming/C/mp3dbd.c:200: undefined reference to
`mysql_init'
mp3dbd.o(.text+0x5ce):/home/sng/Work/Programming/C/mp3dbd.c:201: undefined
reference to `mysql_real_connect'
mp3dbd.o(.text+0x69b):/home/sng/Work/Programming/C/mp3dbd.c:222: undefined
reference to `mysql_thread_init'
collect2: ld returned 1 exit status
make: *** [mp3dbd] Error 1

GCC:
sslug@sslug C]$ gcc -v
Reading specs from /usr/lib/gcc-lib/i686-redhat-linux/3.3.3/specs
Configured with:
../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info
 --enable-shared --enable-threads=posix --disable-checking --disable-libunwi
nd-exceptions --with-system-zlib --enable-__cxa_atexit --host=i686-redhat-li
nux
Thread model: posix
gcc version 3.3.3 20040326 (Red Hat Linux 3.3.3-6)

Heller ikke programmer der compilede tidligere vil virke.

Nogen idéer?

/SNG




 
Home   Subscribe   Mail Archive   Index   Calendar   Search

 
 
Questions about the web-pages to <www_admin>. Last modified 2005-08-10, 22:44 CEST [an error occurred while processing this directive]
This page is maintained by [an error occurred while processing this directive]MHonArc [an error occurred while processing this directive] # [an error occurred while processing this directive] *