dbTalk Databases Forums  

custom1 example compilation problem

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


Discuss custom1 example compilation problem in the mailing.database.mysql-plusplus forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Benjamin Montua
 
Posts: n/a

Default custom1 example compilation problem - 05-23-2005 , 06:27 AM






Hy there,

just trying to compile the mysql++-1.7.35 with the following error:

source='custom1.cpp' object='custom1.o' libtool=no \
depfile='.deps/custom1.Po' tmpdepfile='.deps/custom1.TPo' \
depmode=gcc3 /bin/sh ../depcomp \
g++ -DHAVE_CONFIG_H -I. -I. -I.. -I../lib
-I/home/montua/libs/mysql-standard-4.1.12-pc-linux-gnu-i686/include -g
-O2 -c -o custom1.o `test -f 'custom1.cpp' || echo './'`custom1.cpp
custom1.cpp: In function `void populate_stock(stock*, const mysqlpp::Row&)
[with mysqlpp::sql_dummy_type dummy = sql_dummy]':
custom1.cpp:19: instantiated from here
custom1.cpp:19: error: invalid static_cast from type `const
mysqlpp::ColData'
to type `std::basic_string<char, std::char_traits<char>,
std::allocator<char> >'
make[2]: *** [custom1.o] Error 1
make[2]: Leaving directory `/home/montua/libs/mysql++-1.7.35/examples'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/montua/libs/mysql++-1.7.35'
make: *** [all] Error 2


Any help here will be appreciated...

Thanks in advance,

Ben



--
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: custom1 example compilation problem - 05-23-2005 , 10:25 AM






Benjamin Montua wrote:
Quote:
just trying to compile the mysql++-1.7.35
How are you trying to compile it? What compiler? What build system?
What OS?

I can guess GCC 3.something on Linux from the error messages, but give
me some details, please.

--
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   
Benjamin Montua
 
Posts: n/a

Default Re: custom1 example compilation problem - 05-23-2005 , 10:30 AM



First using configure and then make.

The system is Suse 8.2
Using gcc 3.3.1
Kernel should be 2.4.26

Thanks,
Ben



Warren Young schrieb:

Quote:
Benjamin Montua wrote:

just trying to compile the mysql++-1.7.35


How are you trying to compile it? What compiler? What build system?
What OS?

I can guess GCC 3.something on Linux from the error messages, but give
me some details, please.

--
.................................................. ...........................
Benjamin Montua
Project manager iTV

plan_b media ag
Schaafenstr. 25
D - 50676 Cologne
+49(0)221-93 18 70-90
montua (AT) planb-media (DOT) de
http://www.planb-media.de
.................................................. ...........................


--
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: custom1 example compilation problem - 05-23-2005 , 10:34 AM



Benjamin Montua wrote:
Quote:
The system is Suse 8.2
Using gcc 3.3.1
Kernel should be 2.4.26
Something very strange is going on. One of the primary development
systems for MySQL++ is rather close to that. Do you have a different
machine you can try it on?

--
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   
Benjamin Montua
 
Posts: n/a

Default Re: custom1 example compilation problem - 05-23-2005 , 10:44 AM



We have different machines, but all of them are configured the same.
I've already tried it on another one.

I have run the configure script with --with-mysql= (see the path below)
I haven't installed mysql in the default folders.
Does that matter?


My lib folders:
libs/mysql-standard-4.1.12-pc-linux-gnu-i686
libs/mysql++-1.7.35


Bye the way: I've configured it with --enable-examples=no and then the
library build seems to be OK.



Warren Young schrieb:

Quote:
Benjamin Montua wrote:

The system is Suse 8.2
Using gcc 3.3.1
Kernel should be 2.4.26


Something very strange is going on. One of the primary development
systems for MySQL++ is rather close to that. Do you have a different
machine you can try it on?

--
.................................................. ...........................
Benjamin Montua
Project manager iTV

plan_b media ag
Schaafenstr. 25
D - 50676 Cologne
+49(0)221-93 18 70-90
montua (AT) planb-media (DOT) de
http://www.planb-media.de
.................................................. ...........................


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

Default Re: custom1 example compilation problem - 05-23-2005 , 11:00 AM



Benjamin Montua wrote:
Quote:
I have run the configure script with --with-mysql= (see the path below)
I haven't installed mysql in the default folders.
Does that matter?
No. If the library itself is building, the examples should, too.

Quote:
Bye the way: I've configured it with --enable-examples=no and then the
library build seems to be OK.
What happens if you then install it, and then say "make -f
Makefile.simple" from within the examples directory?

Also, I said I was using a similar system, but I was mistaken. It was
my old Fedora Core 2 system that used GCC 3.3. I now use 3.2 and 3.4.
Is there any way you could update one of your machines to GCC 3.4?

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

Default Re: custom1 example compilation problem - 05-23-2005 , 03:18 PM



On Mon, May 23, 2005 at 05:30:39PM +0200, Benjamin Montua wrote:
Quote:
First using configure and then make.

The system is Suse 8.2
Using gcc 3.3.1
Kernel should be 2.4.26
I have gcc-3.3.4 here, and I don't get that error.

- 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
  #8  
Old   
Benjamin Montua
 
Posts: n/a

Default Re: custom1 example compilation problem - 05-24-2005 , 01:58 AM



OK then,

I took the gcc 3.4.0 and everything was fine!

Thank you very much for your help!

Bye,

Benjamin



Chris Frey schrieb:

Quote:
On Mon, May 23, 2005 at 05:30:39PM +0200, Benjamin Montua wrote:


First using configure and then make.

The system is Suse 8.2
Using gcc 3.3.1
Kernel should be 2.4.26



I have gcc-3.3.4 here, and I don't get that error.

- Chris




--
.................................................. ...........................
Benjamin Montua
Project manager iTV

plan_b media ag
Schaafenstr. 25
D - 50676 Cologne
+49(0)221-93 18 70-90
montua (AT) planb-media (DOT) de
http://www.planb-media.de
.................................................. ...........................


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