dbTalk Databases Forums  

problems compiling on osx

mailing.database.mysql-plusplus mailing.database.mysql-plusplus


Discuss problems compiling on osx in the mailing.database.mysql-plusplus forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Chad Dombrova
 
Posts: n/a

Default problems compiling on osx - 01-17-2006 , 05:17 PM






--Apple-Mail-1-318840032
Content-Transfer-Encoding: 7bit
Content-Type: text/plain;
charset=US-ASCII;
format=flowed

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_for ce_newE
__ZNSt24__default_alloc_templateILb1ELi0EE12_S_fre e_listE
__ZNSt24__default_alloc_templateILb1ELi0EE22_S_nod e_allocator_lockE
__ZSt4cerr
__ZSt4cout
__ZSt4endsIcSt11char_traitsIcEERSt13basic_ostreamI T_T0_ES6_
__ZTIa
__ZTId
__ZTIf
__ZTIh
__ZTIi
__ZTIj
__ZTIl
__ZTIm
__ZTIs
__ZTIt
__ZTIv
__ZTIx
__ZTIy
__ZTTSt19basic_ostringstreamIcSt11char_traitsIcESa IcEE
__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_traitsIcESa IcEE
__ZTVSt9basic_iosIcSt11char_traitsIcEE
__ZTv0_n12_NSoD0Ev
__ZTv0_n12_NSoD1Ev
___cxa_pure_virtual
___gxx_personality_v0
--Apple-Mail-1-318840032--


Reply With Quote
  #2  
Old   
Warren Young
 
Posts: n/a

Default Re: problems compiling on osx - 01-17-2006 , 06:34 PM






Chad Dombrova wrote:
Quote:
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_for ce_newE
__ZNSt24__default_alloc_templateILb1ELi0EE12_S_fre e_listE
__ZNSt24__default_alloc_templateILb1ELi0EE22_S_nod e_allocator_lockE
None of this is due to MySQL++ or the MySQL C API, directly. This is
all Standard C and C++ library type stuff. I think you have too many
pieces from too many places floating around and getting in each others'
ways. Use all Fink, or all of this eSuite thing, or all stuff from
MySQL AB. Rebuild things from source as much as possible.

--
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe: http://lists.mysql.com/plusplus?unsu...ie.nctu.edu.tw



Reply With Quote
  #3  
Old   
Chad Dombrova
 
Posts: n/a

Default Re: problems compiling on osx - 01-18-2006 , 11:39 AM



--Apple-Mail-1-384957712
Content-Transfer-Encoding: 7bit
Content-Type: text/plain;
charset=US-ASCII;
format=flowed

i tried again on my home machine running osx 10.4

i installed only fink packages - all mysql 4.1 - and i compiled with
gcc3.3

when i ran the compiled examples i got only one dyld error this time:

___cxa_pure_virtual


i then reconfigure and recompiled msql++ with gcc4.0 and everything
worked fine -- no errors when running the examples. i know that
mysql++ is supposed to compile with gcc3.3 so does anyone have any idea
how to get rid of this pure virtual error with gcc3.3?

-chad



On Jan 17, 2006, at 4:34 PM, Warren Young wrote:

Quote:
Chad Dombrova wrote:
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_for ce_newE
__ZNSt24__default_alloc_templateILb1ELi0EE12_S_fre e_listE
__ZNSt24__default_alloc_templateILb1ELi0EE22_S_nod e_allocator_lockE

None of this is due to MySQL++ or the MySQL C API, directly. This is
all Standard C and C++ library type stuff. I think you have too many
pieces from too many places floating around and getting in each
others' ways. Use all Fink, or all of this eSuite thing, or all stuff
from MySQL AB. Rebuild things from source as much as possible.

--
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe:
http://lists.mysql.com/plusplus?unsu...ures (DOT) com

--Apple-Mail-1-384957712--



Reply With Quote
Reply




Thread Tools
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.