logo       
Google Custom Search
    AddThis Social Bookmark Button

Re: cpp/mysql++ compilation error: msg#00091

Subject: Re: cpp/mysql++ compilation error
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 <pacman@xxxxxxxxxxxxxxx> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> 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"<pacman@xxxxxxxxxxxxxxx>
> 
> /**
> * 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
> 
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.2.4 (GNU/Linux)
> 
>
iD8DBQFAZDFAkj4I0Et8EMgRApMHAKD9dFAwblBWd7ueI4a9qUc1xpEwWACfbpHq
> mqGGWokE1tw+NHm8QqhJZBc=
> =SAq/
> -----END PGP SIGNATURE-----
> 
> -- 
> MySQL++ Mailing List
> For list archives: http://lists.mysql.com/plusplus
> To unsubscribe:   
>
http://lists.mysql.com/plusplus?unsub=jaeyoonjoo@xxxxxxxxx
> 


__________________________________
Do you Yahoo!?
Yahoo! Finance Tax Center - File online. File on time.
http://taxes.yahoo.com/filing.html

-- 
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe:    
http://lists.mysql.com/plusplus?unsub=gcdmc-plusplus@xxxxxxxxxxx





Try Searching:
servers, voip, java, networking, microsoft ...
<Prev in Thread] Current Thread [Next in Thread>