problems with mysql++ on osx
Posted by: Chad Dombrova
Date: January 17, 2006 05:01PM

i'm getting linker errors when running the examples on osx 10.3.9

i'm pretty new to this, so let me go through exactly what i did.

first, i downloaded the mysql-dev package using fink and made the mysql++ 2.0.7 source from the mysql++ site, being sure to point the configure script to the location of the c api files:

./configure --with-mysql=/sw
make
sudo make install

everything compiled and linked without errors, but when i executed any of the examples i got linker errors (see below for the exact errors).

the version of the mysql-dev package on fink was 3.23.58, so i thought this might be out of date since our server is using 4.0. server uses a distrib of mysql from eSuite, so i got the developer files directly from the server machine and put them in the proper directory on my machine. then i tried again:

./configure --with-mysql=/Library/eSuite4X/MySQL4/Developer
make
sudo make install

running the examples gave the same linker errors.

any suggestions would be greatly appreciated. sorry for the newb question.

-chad


the linker errors:
----------------------------------------------------------------

dyld: resetdb Undefined symbols:
__ZNKSt11logic_error4whatEv
__ZNSoD0Ev
__ZNSoD1Ev
__ZNSs20_S_empty_rep_storageE
__ZNSs4_Rep11_S_max_sizeE
__ZNSs4_Rep11_S_terminalE
__ZNSt24__default_alloc_templateILb1ELi0EE12_S_force_newE
__ZNSt24__default_alloc_templateILb1ELi0EE12_S_free_listE
__ZNSt24__default_alloc_templateILb1ELi0EE22_S_node_allocator_lockE
__ZSt4cerr
__ZSt4cout
__ZSt4endsIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_
__ZTIa
__ZTId
__ZTIf
__ZTIh
__ZTIi
__ZTIj
__ZTIl
__ZTIm
__ZTIs
__ZTIt
__ZTIv
__ZTIx
__ZTIy
__ZTTSt19basic_ostringstreamIcSt11char_traitsIcESaIcEE
__ZTVN10__cxxabiv117__class_type_infoE
__ZTVN10__cxxabiv120__si_class_type_infoE
__ZTVN10__cxxabiv121__vmi_class_type_infoE
__ZTVSt15basic_streambufIcSt11char_traitsIcEE
__ZTVSt15basic_stringbufIcSt11char_traitsIcESaIcEE
__ZTVSt19basic_ostringstreamIcSt11char_traitsIcESaIcEE
__ZTVSt9basic_iosIcSt11char_traitsIcEE
__ZTv0_n12_NSoD0Ev
__ZTv0_n12_NSoD1Ev
___cxa_pure_virtual
___gxx_personality_v0

Options: ReplyQuote


Subject
Views
Written By
Posted
problems with mysql++ on osx
831
January 17, 2006 05:01PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.