8 messages in com.mysql.lists.plusplusRe: Error when compiling with patches
FromSent OnAttachments
Sreesekhar Palaparthy21 Jul 2003 00:51 
Sinisa Milivojevic21 Jul 2003 08:59 
Vu Pham21 Jul 2003 09:39 
Sinisa Milivojevic22 Jul 2003 08:04 
Vu Pham22 Jul 2003 08:36 
Sinisa Milivojevic23 Jul 2003 03:50 
Mathias Kussinger26 Jul 2003 04:35 
Sinisa Milivojevic26 Jul 2003 06:20 
Subject:Re: Error when compiling with patches
From:Sinisa Milivojevic (sin@beotel.yu)
Date:07/22/2003 08:04:26 AM
List:com.mysql.lists.plusplus

On Mon, 21 Jul 2003 11:39:56 -0500 Vu Pham <mys@sivell.com> wrote:

Hi all,

I am compiling mysql++1.7.9 with gcc 3.3. Patch for gcc 3.2 is applied first and then patch for gcc 3.3 is. Configure is executed with ./configure --with-mysql=/usr/mysql-4.0.13 --with-mysql-lib=/usr/mysql-4.0.13/lib --with-mysql-include=/usr/mysql-4.0.13/include

then make gives me the following error: c++ -DHAVE_CONFIG_H -I. -I. -I.. -I../sqlplusint -I../sqlplusint -I/usr/mysql-4.0.13/include/mysql -g -O2 -c custom1.cc custom1.cc: In function `void populate_stock(stock*, const MysqlRow&) [with sql_dummy_type dummy = sql_dummy]': custom1.cc:16: instantiated from here custom1.cc:16: error: ambiguous overload for `std::string& = const MysqlColData ' operator /usr/gcc-3.3/include/c++/3.3/bits/basic_string.h:361: error: candidates are: std::basic_string<_CharT, _Traits, _Alloc>& std::basic_string<_CharT,_Traits, _Alloc>::operator=(const _CharT*) [with _CharT = char, _Traits = std::char_traits<char>, _Alloc = std::allocator<char>]/usr/gcc-3.3/include/c++/3.3/bits/basic_string.h:3 64: error: std::basic_string<_CharT, _Traits, _Alloc>& std::basic_string<_CharT,_Traits, _Alloc>::operator=(_CharT) [with _CharT = char, _Traits = std::char_traits<char>, _Alloc = std::allocator<char>] make[2]: *** [custom1.o] Error 1 make[2]: Leaving directory `/home/vu/mysql++-1.7.9/examples' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/vu/mysql++-1.7.9' make: *** [all-recursive-am] Error 2

Could you please give me some advice ?

Thanks,

Vu

Hi!

Before applying 3.2 patch, you should have applied 3.0 patch.

You should have also watced if it all went well, that there are no rejects.

Regards,