Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Undefined symbol in mysql++-1.7.9-r1 ??
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
rootair
n00b
n00b


Joined: 25 Jun 2003
Posts: 6
Location: Germany

PostPosted: Fri Jun 27, 2003 11:34 am    Post subject: Undefined symbol in mysql++-1.7.9-r1 ?? Reply with quote

Hi folks,

while trying to compile a simple mysql++ test program, the following error came up:
Code:
$ c++ -I'/usr/include/mysql' -I'/usr/include/mysql++' -L'/usr/lib/mysql' -lmysqlclient -lz -lcrypt -lnsl -lm -L/usr/lib -lssl -lcrypto -Wno-deprecated -lsqlplus first_mysql.cpp
/usr/lib/libsqlplus.so: undefined reference to `mysql_ti_sql_type_info::mysql_ti_sql_type_info[in-charge](mysql_ti_sql_type_info const&)'
collect2: ld returned 1 exit status

$ ldd -r /usr/lib/libsqlplus.so
        libz.so.1 => /usr/lib/libz.so.1 (0x4003c000)
        libmysqlclient.so.12 => /usr/lib/libmysqlclient.so.12 (0x4004b000)
        libstdc++.so.5 => /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.3/libstdc++.so.5 (0x4008b000)
        libm.so.6 => /lib/libm.so.6 (0x4013c000)
        libc.so.6 => /lib/libc.so.6 (0x4015e000)
        libgcc_s.so.1 => /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.3/libgcc_s.so.1 (0x4028c000)
        libcrypt.so.1 => /lib/libcrypt.so.1 (0x40295000)
        libnsl.so.1 => /lib/libnsl.so.1 (0x402c2000)
        libssl.so.0.9.6 => /usr/lib/libssl.so.0.9.6 (0x402d7000)
        libcrypto.so.0.9.6 => /usr/lib/libcrypto.so.0.9.6 (0x40306000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000)
        libdl.so.2 => /lib/libdl.so.2 (0x403cb000)
undefined symbol: _ZN22mysql_ti_sql_type_infoC1ERKS_    (/usr/lib/libsqlplus.so)


The program is much the same as the mysql++ simple tutorial.
Any hints?

BTW: gcc is version 3.2.3.

EDIT: Bug submitted.
_________________
Shoot me again, I ain't dead yet...
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum