2 messages in com.mysql.lists.plusplussimple(simple1.cc) compilation problem
FromSent OnAttachments
Warren Young29 Mar 2005 13:13 
Kaplenko Vitalij29 Mar 2005 13:23 
Subject:simple(simple1.cc) compilation problem
From:Kaplenko Vitalij (di@zm.kh.ua)
Date:03/29/2005 01:23:14 PM
List:com.mysql.lists.plusplus

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