List:MySQL++« Previous MessageNext Message »
From:Johannes Schaub Date:February 7 2006 7:50pm
Subject:Re: linker-error using mingw shipped with devcpp4.9.9.2
View as plain text  
hi! i discovered that "libmysqlclient.def" misses 2 symbol names:

mysql_more_results@4
mysql_next_result@4

having added these, the examples compiled. i now only have problems 
concerning simple2.exe and simple3.exe.
you are using german umlauts in "Nürnberger Brats". in simple2.exe these 
umlauts are displayed correctly, but in
simple3.exe, where it uses the 'use-query', i get funny symbols instead 
of a 'ü'. i use latin1 for my mysql database,
if that's helpful...

cheers johannes 'aka litb



Johannes Schaub schrieb:
> hi all! 
> I have to build mysql++ a second time (firstly with msvc which was flawless) for
> compatibility issues.
> the libraries were compiled successfully, both debug and release, but i encounter an
> error
> while linking against mysql lib:
>
> cd lib && mingw32-make BIN_DIR=release
> mingw32-make[1]: Entering directory `C:/mysql++-2.0.7/lib'
> g++ -I"C:\Programme\MySQL\MySQL Server 5.0"\include -I.. -DMYSQLPP_NO_DLL -O2 -c
>  -O2 -orelease\coldata.o coldata.cpp
> g++ -I"C:\Programme\MySQL\MySQL Server 5.0"\include -I.. -DMYSQLPP_NO_DLL -O2 -c
>  -O2 -orelease\connection.o connection.cpp
> g++ -I"C:\Programme\MySQL\MySQL Server 5.0"\include -I.. -DMYSQLPP_NO_DLL -O2 -c
>  -O2 -orelease\datetime.o datetime.cpp
> g++ -I"C:\Programme\MySQL\MySQL Server 5.0"\include -I.. -DMYSQLPP_NO_DLL -O2 -c
>  -O2 -orelease\field_names.o field_names.cpp
> g++ -I"C:\Programme\MySQL\MySQL Server 5.0"\include -I.. -DMYSQLPP_NO_DLL -O2 -c
>  -O2 -orelease\field_types.o field_types.cpp
> g++ -I"C:\Programme\MySQL\MySQL Server 5.0"\include -I.. -DMYSQLPP_NO_DLL -O2 -c
>  -O2 -orelease\fields.o fields.cpp
> g++ -I"C:\Programme\MySQL\MySQL Server 5.0"\include -I.. -DMYSQLPP_NO_DLL -O2 -c
>  -O2 -orelease\manip.o manip.cpp
> g++ -I"C:\Programme\MySQL\MySQL Server 5.0"\include -I.. -DMYSQLPP_NO_DLL -O2 -c
>  -O2 -orelease\myset.o myset.cpp
> g++ -I"C:\Programme\MySQL\MySQL Server 5.0"\include -I.. -DMYSQLPP_NO_DLL -O2 -c
>  -O2 -orelease\qparms.o qparms.cpp
> g++ -I"C:\Programme\MySQL\MySQL Server 5.0"\include -I.. -DMYSQLPP_NO_DLL -O2 -c
>  -O2 -orelease\query.o query.cpp
> g++ -I"C:\Programme\MySQL\MySQL Server 5.0"\include -I.. -DMYSQLPP_NO_DLL -O2 -c
>  -O2 -orelease\result.o result.cpp
> g++ -I"C:\Programme\MySQL\MySQL Server 5.0"\include -I.. -DMYSQLPP_NO_DLL -O2 -c
>  -O2 -orelease\row.o row.cpp
> g++ -I"C:\Programme\MySQL\MySQL Server 5.0"\include -I.. -DMYSQLPP_NO_DLL -O2 -c
>  -O2 -orelease\sql_string.o sql_string.cpp
> g++ -I"C:\Programme\MySQL\MySQL Server 5.0"\include -I.. -DMYSQLPP_NO_DLL -O2 -c
>  -O2 -orelease\string_util.o string_util.cpp
> g++ -I"C:\Programme\MySQL\MySQL Server 5.0"\include -I.. -DMYSQLPP_NO_DLL -O2 -c
>  -O2 -orelease\type_info.o type_info.cpp
> g++ -I"C:\Programme\MySQL\MySQL Server 5.0"\include -I.. -DMYSQLPP_NO_DLL -O2 -c
>  -O2 -orelease\vallist.o vallist.cpp
> ar cru release\libmysqlpp.a  release/coldata.o release/connection.o release/date
> time.o release/field_names.o release/field_types.o release/fields.o release/mani
> p.o release/myset.o release/qparms.o release/query.o release/result.o release/ro
> w.o release/sql_string.o release/string_util.o release/type_info.o release/valli
> st.o
> del /q "..\examples\release\"*.exe
> C:\mysql++-2.0.7\examples\release\*.exe konnte nicht gefunden werden
> mingw32-make[1]: Leaving directory `C:/mysql++-2.0.7/lib'
> cd examples && mingw32-make
> mingw32-make[1]: Entering directory `C:/mysql++-2.0.7/examples'
> g++ -I"C:\Programme\MySQL\MySQL Server 5.0"\include -I..\lib -c -DMYSQLPP_NO_DLL
>  -O0 -odebug\resetdb.o resetdb.cpp
> g++ -I"C:\Programme\MySQL\MySQL Server 5.0"\include -I..\lib -c -DMYSQLPP_NO_DLL
>  -O0 -odebug\util.o util.cpp
> g++ -L..\lib\debug -L"C:\Programme\MySQL\MySQL Server 5.0"\lib\gcc       debug/r
> esetdb.o  debug/util.o -odebug/resetdb.exe -lmysqlpp -lmysqlclient
> ..\lib\debug/libmysqlpp.a(query.o)(.text+0xe15):query.cpp: undefined reference t
> o `mysql_more_results@4'
> ..\lib\debug/libmysqlpp.a(query.o)(.text+0x22d9):query.cpp: undefined reference
> to `mysql_next_result@4'
> collect2: ld returned 1 exit status
> mingw32-make[1]: *** [resetdb.exe] Error 1
> mingw32-make[1]: Leaving directory `C:/mysql++-2.0.7/examples'
> mingw32-make: *** [all] Error 2
>
> C:\mysql++-2.0.7>
>
>
> i did exactly what you telled in README.mingw (and created mysqlclient using dlltool)
> but still there is this linking error.
> would you please be so kind to help me?
>
> thx all!
>
> cheers johannes, 'aka litb
> __________________________________________________________________________
> Erweitern Sie FreeMail zu einem noch leistungsstarkeren E-Mail-Postfach!		
> Mehr Infos unter http://freemail.web.de/home/landingpad/?mc=021131
>
>
>   

Thread
linker-error using mingw shipped with devcpp4.9.9.2Johannes Schaub7 Feb
  • Re: linker-error using mingw shipped with devcpp4.9.9.2Johannes Schaub7 Feb