20 messages in com.mysql.lists.plusplusRe: cpp/mysql++ compilation error
FromSent OnAttachments
Voicu Liviu26 Mar 2004 02:47 
Sinisa Milivojevic26 Mar 2004 04:02 
Voicu Liviu26 Mar 2004 04:23 
Voicu Liviu26 Mar 2004 05:33 
Jae Joo26 Mar 2004 05:51 
Voicu Liviu26 Mar 2004 06:00 
Sinisa Milivojevic26 Mar 2004 06:11 
Jae Joo26 Mar 2004 06:22 
Voicu Liviu26 Mar 2004 06:36 
Voicu Liviu26 Mar 2004 07:25 
Voicu Liviu26 Mar 2004 10:40 
Jae Joo26 Mar 2004 11:24 
Sinisa Milivojevic26 Mar 2004 12:27 
Voicu Liviu26 Mar 2004 23:56 
Voicu Liviu27 Mar 2004 00:03 
Voicu Liviu27 Mar 2004 04:31 
Sinisa Milivojevic27 Mar 2004 05:07 
Sinisa Milivojevic27 Mar 2004 05:08 
Voicu Liviu27 Mar 2004 07:58 
Voicu Liviu27 Mar 2004 08:03 
Subject:Re: cpp/mysql++ compilation error
From:Voicu Liviu (pac@mscc.huji.ac.il)
Date:03/26/2004 06:00:49 AM
List:com.mysql.lists.plusplus

I already did this:

LIB = -L/usr/lib/mysql -L/usr/lib/libsqlplus.so INCLUDE = -I/usr/include/mysql -I/usr/include/mysql++ FLAGS = -Wno-deprecated -lmysqlclient

qDB : qDB.cpp c++ ${FLAGS} $? -o $@ ${LIB} ${INCLUDE}

clean: rm -rf qDB

The prob. persists!

Jae Joo wrote:

Did you compile the mysql++? If so, check the library /usr/local/lib/libsqlplus.so and the include files under the /usr/local/include. Here is my make file

LIB=-L/usr/lib/mysql -L/usr/local/lib /usr/local/lib/libsqlplus.so INCLUDE=-I/usr/local/include -I/usr/include/mysql FLAGS=-Wno-deprecated -lmysqlclient a.out : test.cpp c++ ${FLAGS} $? -o $@ ${LIB} ${INCLUDE}

Jae Joo www.jaesolution.com --- Voicu Liviu <pac@mscc.huji.ac.il> wrote:

As you can see, I have the same error after applaying the paches you told me to:

<ERROR> $ c++ -Wno-deprecated -lmysqlclient qDB.cpp -o qDB -L/usr/lib/mysql -I/usr/include/mysql -I/usr/include/mysql++ qDB.cpp: In function `int main()': qDB.cpp:20: error: ISO C++ says that `std::basic_ostream<char, _Traits>& ~ std::operator<<(std::basic_ostream<char, _Traits>&, const char*) [with ~ _Traits = std::char_traits<char>]' and `SQLQuery& operator<<(SQLQuery&, ~ const mysql_ColData<const_string>&)' are ambiguous even though the worst ~ conversion for the former is better than the worst conversion for the latter qDB.cpp:20: error: ISO C++ says that `std::basic_ostream<char, _Traits>& ~ std::operator<<(std::basic_ostream<char, _Traits>&, const char*) [with ~ _Traits = std::char_traits<char>]' and `SQLQuery& operator<<(SQLQuery&, ~ const mysql_ColData<std::string>&)' are ambiguous even though the worst ~ conversion for the former is better than the worst conversion for the latter </ERROR>

<PATCH-PROCESS> # patch -p1 < ../patch_gcc_3.3 patching file examples/cgi_image.cc patching file examples/complic1.cc patching file examples/custom1.cc patching file examples/custom2.cc patching file examples/custom3.cc patching file examples/custom4.cc patching file examples/fieldinf1.cc patching file examples/load_file.cc patching file examples/resetdb.cc patching file examples/simple1.cc patching file examples/sinisa_ex.cc patching file examples/updel_x_.cc patching file examples/util.cc patching file sqlplusint/coldata1.hh patching file sqlplusint/compare1.hh patching file sqlplusint/connection1.hh patching file sqlplusint/connection.cc patching file sqlplusint/const_string1.hh patching file sqlplusint/convert1.hh patching file sqlplusint/custom.pl patching file sqlplusint/datetime1.hh patching file sqlplusint/datetime.cc patching file sqlplusint/exceptions.hh.in patching file sqlplusint/field_names1.hh patching file sqlplusint/field_types1.hh patching file sqlplusint/Makefile The next patch would create the file sqlplusint/Makefile.in, which already exists! Assume -R? [n] y patching file sqlplusint/Makefile.in Hunk #1 FAILED at 1. File sqlplusint/Makefile.in is not empty after patch, as expected 1 out of 1 hunk FAILED -- saving rejects to file sqlplusint/Makefile.in.rej patching file sqlplusint/manip1.hh patching file sqlplusint/manip.cc patching file sqlplusint/null1.hh patching file sqlplusint/resiter1.hh patching file sqlplusint/result1.hh patching file sqlplusint/set1.hh patching file sqlplusint/sql_query0.hh patching file sqlplusint/sql_query1.hh patching file sqlplusint/sql_query.cc patching file sqlplusint/sql_string1.hh patching file sqlplusint/stream2string3.hh patching file sqlplusint/string_util.cc patching file sqlplusint/type_info1.hh patching file sqlplusint/type_info.cc starshooter mysql++-1.7.9 # patch -p1 < ../patch-3.3.2.diff patching file config.h patching file config.status patching file libtool patching file sqlplusint/custom.hh patching file sqlplusint/custom.pl patching file sqlplusint/.deps/coldata.P patching file sqlplusint/.deps/connection.P patching file sqlplusint/.deps/datetime.P patching file sqlplusint/.deps/field_names.P patching file sqlplusint/.deps/field_types.P patching file sqlplusint/.deps/manip.P patching file sqlplusint/.deps/query.P patching file sqlplusint/.deps/result.P patching file sqlplusint/.deps/set.P patching file sqlplusint/.deps/sql_query.P patching file sqlplusint/.deps/string_util.P patching file sqlplusint/.deps/type_info.P patching file sqlplusint/.deps/vallist.P patching file sqlplusint/exceptions.hh patching file sqlplusint/Makefile patching file sqlplusint/Makefile.in.rej Reversed (or previously applied) patch detected! Assume -R? [n] y

starshooter sqlplusint # perl custom.pl starshooter sqlplusint # </PATCH-PROCESS>

| Just apply 3.3 patch and the one I am sending you ... | | Re-dun custom.pl, after applying ... |

-- Liviu Voicu Internet developer and Linux/Desktop support. Computation Center, Mount Scopus Hebrew University of Jerusalem Tel: 972(2)-5881253 E-mail: "Liviu Voicu"<pac@mscc.huji.ac.il>

/** * cat /usr/src/linux/arch/i386/boot/bzImage > /dev/dsp * ( and the voice of God will be heard! ) * */

Click here to see my GPG signature:

----------------------------------

-- MySQL++ Mailing List For list archives: http://lists.mysql.com/plusplus To unsubscribe:

http://lists.mysql.com/plusplus?unsub=jaey@yahoo.com

-- Liviu Voicu Internet developer and Linux/Desktop support. Computation Center, Mount Scopus Hebrew University of Jerusalem Tel: 972(2)-5881253 E-mail: "Liviu Voicu"<pac@mscc.huji.ac.il>

/** * cat /usr/src/linux/arch/i386/boot/bzImage > /dev/dsp * ( and the voice of God will be heard! ) * */

Click here to see my GPG signature:

----------------------------------

http://search.keyserver.net:11371/pks/lookup?template=netensearch%2Cnetennomatch%2Cnetenerror&search=pacman%40mscc.huji.ac.il&op=vindex&fingerprint=on&submit=Get+List