dbTalk Databases Forums  

Installation of mysql++ with SuSE 9.3

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


Discuss Installation of mysql++ with SuSE 9.3 in the mailing.database.mysql-plusplus forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Matthias Braun
 
Posts: n/a

Default Installation of mysql++ with SuSE 9.3 - 10-02-2005 , 11:05 AM







Help!

I am using SuSE 9.3 with the gcc 3.3.5 and have compiled and installed
the newest mysql++ version 2.0.5 from the Internet.

I can compile my programs, but getting a lot of link errors like
"undefined reference to
`mysqlpp::mysql_time::compare(mysqlpp::mysql_time const*) const'"

My makefile is looking as follows:

CXXFLAGS= -pipe -Wall -W -O2 -I/usr/local/include
-I/usr/local/include/mysql++ -I/usr/include
LIBS = $(SUBLIBS) /usr/local/lib/libmysqlpp.so
OBJECTS = testprogram.o

What is wrong? With my old SuSE 7.2 and mysql++ 1.7.9 everything was
working fine.

Thanks in advance,

Matthias
__________________________________________________ ____________
Verschicken Sie romantische, coole und witzige Bilder per SMS!
Jetzt bei WEB.DE FreeMail: http://f.web.de/?mc=021193


--
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   
Chris Frey
 
Posts: n/a

Default Re: Installation of mysql++ with SuSE 9.3 - 10-02-2005 , 02:11 PM






On Sun, Oct 02, 2005 at 06:04:43PM +0200, Matthias Braun wrote:
Quote:
Help!

I am using SuSE 9.3 with the gcc 3.3.5 and have compiled and installed
the newest mysql++ version 2.0.5 from the Internet.

I can compile my programs, but getting a lot of link errors like
"undefined reference to
`mysqlpp::mysql_time::compare(mysqlpp::mysql_time const*) const'"
mysql_time doesn't exist in verion 2.0.5, so somehow your compile is getting
mixed up with an old 1.7.9 still installed on your system.

- Chris


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

Default Re: Installation of mysql++ with SuSE 9.3 - 10-04-2005 , 06:06 AM



Matthias Braun wrote:
Quote:
LIBS = $(SUBLIBS) /usr/local/lib/libmysqlpp.so
You shouldn't specify library files directly like that. It's probably
the reason your linker is picking up the old version Chris noticed. Say
"-L/usr/local/lib -lmysqlpp" instead. The linker should then be smart
enough to use the most recent "libmysqlpp*".

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

Default Re: Installation of mysql++ with SuSE 9.3 - 10-06-2005 , 06:53 AM



Matthias Braun wrote:
Quote:
I don't know how to remove the older files from the previous
version.
If you installed it from source, try running "make uninstall" in the
source directory.

Quote:
Furthermore the new version should normaly overwrite the old
files, aren't they?
No. For one thing, many files have changed names. For another, the
configure script defaults to place include files in different location
than before.

Quote:
Or is the problem that I am including the wrong header files? I am
including "<sqlplus.hh>"?
Read the "incompatibilities" chapter of the user manual. You were told
to do this on the page where you downloaded MySQL++.

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

Default Re: Installation of mysql++ with SuSE 9.3 - 10-06-2005 , 07:01 AM



Warren Young wrote:
Quote:
try running "make uninstall" in the source directory.
....the v1.7.9 source directory, that is. If you don't have it any more,
you will have to re-configure it using the same options for "make
uninstall" to work correctly.

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