[prev in list] [next in list] [prev in thread] [next in thread] 

List:       mysql-plusplus
Subject:    Re: linker-error using mingw shipped with devcpp4.9.9.2
From:       Johannes Schaub <litb_devel () web ! de>
Date:       2006-02-07 19:50:46
Message-ID: 43E8FA16.40704 () web ! de
[Download RAW message or body]

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


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



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic