dbTalk Databases Forums  

problems with make

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


Discuss problems with make in the mailing.database.mysql-plusplus forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Suhas Nayak
 
Posts: n/a

Default problems with make - 01-25-2006 , 01:31 PM






I'm running Mac OS 10.3.9. I used ./configure
--with-mysql=/usr/local/mysql to generate the makefile. When I run the
makefile, it produces the error below and then stops.
g++ -g -O2 -o .libs/resetdb resetdb.o util.o -L/usr/local/mysql/lib
-L../lib/.libs -lmysqlpp -lz -lmysqlclient
ld: Undefined symbols:
std::allocator<char>::~allocator [unified]()
std::basic_string<char, std::char_traits<char>, std::allocator<char>
Quote:
::~basic_string [unified]()
std::__default_alloc_template<(bool)1, (int)0>::deallocate(void*,
unsigned long)
std::__default_alloc_template<(bool)1, (int)0>::_S_force_new
std::__default_alloc_template<(bool)1, (int)0>::_S_free_list
std::__default_alloc_template<(bool)1, (int)0>::_S_node_allocator_lock
std::__default_alloc_template<(bool)1, (int)0>::_S_refill(unsigned long)
std::basic_string<char, std::char_traits<char>, std::allocator<char>
Quote:
::_S_empty_rep_storage
std::basic_string<char, std::char_traits<char>, std::allocator<char
::_Rep::_S_create(unsigned long, std::allocator<char> const&)
std::basic_streambuf<char, std::char_traits<char
::basic_streambuf[unified]()
std::basic_streambuf<char, std::char_traits<char> >::~basic_streambuf
[unified]()
std::__default_alloc_template<(bool)1, (int)0>::_Lock::_Lock[unified]()
std::__default_alloc_template<(bool)1, (int)0>::_Lock::~_Lock
[unified]()
std::__default_alloc_template<(bool)1, (int)0>::allocate(unsigned long)
make[2]: *** [resetdb] Error 1
make[1]: *** [all-recursive] Error 1

Any ideas on how I can fix this or where it is coming from? My g++ is
version 3.3, though I did try to install a newer version (3.4.5). I am
a novice when it comes to setting up gcc etc. Thanks in advance for
any help.

-Suhas


--
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
  #2  
Old   
Warren Young
 
Posts: n/a

Default Re: problems with make - 01-25-2006 , 11:55 PM






Suhas Nayak wrote:
Quote:
ld: Undefined symbols:
std::allocator<char>::~allocator [unified]()
std::basic_string<char, std::char_traits<char>, std::allocator<char
::~basic_string [unified]()
This looks to be some kind of confusion between multiple versions of
g++. You need to build all the pieces of a C++ program with the same
version of the compiler.

Also, it seems that you are using some version of MySQL other than the
Fink version. Is there a good reason for that, given that the Fink
version is known to work?

--
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
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.