dbTalk Databases Forums  

simple(simple1.cc) compilation problem

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


Discuss simple(simple1.cc) compilation problem in the mailing.database.mysql-plusplus forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Kaplenko Vitalij
 
Posts: n/a

Default simple(simple1.cc) compilation problem - 03-29-2005 , 04:04 PM






Hi everyone,

My environment:
- Linux 2.6.7-1.7asp #1 Thu Jul 15 17:36:07 YEKST 2004 i686 i386 GNU/Linux
- gcc version 3.3.2 20031022 (ASPLinux 3.3.2-1)
- server version: 4.1.10a-standard
- mysql Ver 14.7 Distrib 4.1.10a, for pc-linux-gnu (i686)
- mysql++-1.7.30

I uninstall mysql Distrib 4.1.9, for pc-linux-gnu (i686):

rpm -qa | grep -i mysql

then I removed all MySQL packages, which are likely to be
MySQL-shared, MySQL-server, MySQL-client:

rpm --erase --nodeps <packagename>

Then I installed MySQL official binary RPMs:

rpm --install MySQL*rpm

The following RPMs have been installed:

MySQL-server-4.1.10a-0.i386.rpm
MySQL-client-4.1.10a-0.i386.rpm
MySQL-bench-4.1.10a-0.i386.rpm
MySQL-devel-4.1.10a-0.i386.rpm
MySQL-shared-4.1.10a-0.i386.rpm
MySQL-shared-compat-4.1.10a-0.i386.rpm

Then I installed mysql++-1.7.30:

$ ./configure
$ make
$ su
# make install

When I tried to compile simple1.cc, I get error:

$ g++ -I/usr/include/mysql -I/usr/include/mysql++ -o simple simple1.cc
util.cc -lmysqlpp
/usr/local/lib/libmysqlpp.so: undefined reference to `pthread_getspecific'
/usr/local/lib/libmysqlpp.so: undefined reference to `pthread_key_delete'
/usr/local/lib/libmysqlpp.so: undefined reference to
`pthread_mutexattr_destroy'
/usr/local/lib/libmysqlpp.so: undefined reference to
`pthread_mutexattr_setkind_np'
/usr/local/lib/libmysqlpp.so: undefined reference to `pthread_key_create'
/usr/local/lib/libmysqlpp.so: undefined reference to
`pthread_mutexattr_init'
/usr/local/lib/libmysqlpp.so: undefined reference to `pthread_setspecific'
collect2: ld returned 1 exit status

Help me, pls.

Many thanks

Vitalij

--
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: simple(simple1.cc) compilation problem - 03-29-2005 , 04:13 PM






Kaplenko Vitalij wrote:
Quote:
- mysql++-1.7.30
Download 1.7.32. It changes thread handling in a way that will work
better for you. If you decide later that you want thread handling and
it still doesn't work, we can deal with that then. But for now, just
use the default: no thread support.

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