dbTalk Databases Forums  

Issue with MySQL++

mailing.database.mysql-plusplus mailing.database.mysql-plusplus


Discuss Issue with MySQL++ in the mailing.database.mysql-plusplus forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Death Gauge
 
Posts: n/a

Default Issue with MySQL++ - 11-14-2005 , 03:46 PM






I uncommented the DLL stuff with MinGW and to my surprise the only error I
ran into right off is I got the following with make and don't know if there
is a way to correct it.


g++ -shared -o mysqlpp.dll debug/coldata.o debug/connection.o
debug/datetime.o
debug/field_names.o debug/field_types.o debug/fields.o debug/manip.o
debug/myset
..o debug/qparms.o debug/query.o debug/result.o debug/row.o
debug/sql_string.o de
bug/string_util.o debug/type_info.o debug/vallist.o -Lc:\mysql\lib\gcc
-lmysqlc
lient
debug/query.o(.text+0xd6b):query.cpp: undefined reference to
`mysql_more_results
@4'
debug/query.o(.text+0x222f):query.cpp: undefined reference to
`mysql_next_result
@4'
collect2: ld returned 1 exit status
make: *** [mysqlpp.dll] Error 1


--Death Gauge
"How do you gauge your death?!"

__________________________________________________ _______________
Don’t just search. Find. Check out the new MSN Search!
http://search.msn.click-url.com/go/o...ave/direct/01/


--
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe: http://lists.mysql.com/plusplus?unsu...ie.nctu.edu.tw


Reply With Quote
  #2  
Old   
Death Gauge
 
Posts: n/a

Default Re: Issue with MySQL++ - 11-15-2005 , 01:29 AM






I did this:

mkdir c:\mysql\lib\gcc
cd c:\mysql\lib\gcc
dlltool -k -d c:\mysql++\libmysqlclient.def -l libmysqlclient.a

and then typed makemake mingw and make (renamed mingw32-make to simply
make). It compiles fine until it suddenly hits the before mentioned error.




--Death Gauge
"How do you gauge your death?!"




----Original Message Follows----
From: Warren Young <mysqlpp (AT) etr-usa (DOT) com>
To: MySQL++ Mailing List <plusplus (AT) lists (DOT) mysql.com>
Subject: Re: Issue with MySQL++
Date: Mon, 14 Nov 2005 15:51:47 -0700

Death Gauge wrote:
Quote:
debug/query.o(.text+0xd6b):query.cpp: undefined reference to
`mysql_more_results
@4'
This is due to not using the correct DEF file when creating the import
library. Follow the instructions in README.mingw. It still covers the DLL
linking method, even though it isn't supported right now.

--
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe: http://lists.mysql.com/plusplus?unsu...mail (DOT) com

__________________________________________________ _______________
Express yourself instantly with MSN Messenger! Download today - it's FREE!
http://messenger.msn.click-url.com/g...ave/direct/01/


--
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe: http://lists.mysql.com/plusplus?unsu...ie.nctu.edu.tw



Reply With Quote
  #3  
Old   
Warren Young
 
Posts: n/a

Default Re: Issue with MySQL++ - 11-15-2005 , 01:29 AM



Death Gauge wrote:
Quote:
debug/query.o(.text+0xd6b):query.cpp: undefined reference to
`mysql_more_results
@4'
This is due to not using the correct DEF file when creating the import
library. Follow the instructions in README.mingw. It still covers the
DLL linking method, even though it isn't supported right now.

--
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe: http://lists.mysql.com/plusplus?unsu...ie.nctu.edu.tw



Reply With Quote
  #4  
Old   
Wim Stockman
 
Posts: n/a

Default Re: Issue with MySQL++ - 11-15-2005 , 03:50 AM



Hello,

If you succeed compiling de librabry with mingw could you mail me the
dll or library ?
Because I tried several times and get plenty of compiling errors.
It would be a great help !

thank you,

Wim Stockman




Death Gauge schreef:

Quote:
I did this:

mkdir c:\mysql\lib\gcc
cd c:\mysql\lib\gcc
dlltool -k -d c:\mysql++\libmysqlclient.def -l libmysqlclient.a

and then typed makemake mingw and make (renamed mingw32-make to simply
make). It compiles fine until it suddenly hits the before mentioned
error.




--Death Gauge
"How do you gauge your death?!"




----Original Message Follows----
From: Warren Young <mysqlpp (AT) etr-usa (DOT) com
To: MySQL++ Mailing List <plusplus (AT) lists (DOT) mysql.com
Subject: Re: Issue with MySQL++
Date: Mon, 14 Nov 2005 15:51:47 -0700

Death Gauge wrote:

debug/query.o(.text+0xd6b):query.cpp: undefined reference to
`mysql_more_results
@4'


This is due to not using the correct DEF file when creating the import
library. Follow the instructions in README.mingw. It still covers
the DLL linking method, even though it isn't supported right now.

--
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe:
http://lists.mysql.com/plusplus?unsu...mail (DOT) com

__________________________________________________ _______________
Express yourself instantly with MSN Messenger! Download today - it's
FREE! http://messenger.msn.click-url.com/g...ave/direct/01/



--
n.v. E.E.S.P. S.a.
Graanmarkt nr 6,
BE-9400 Ninove
Tel +32 54 33 05 10
Fax +32 54 33 05 37
BELGIE


--
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe: http://lists.mysql.com/plusplus?unsu...ie.nctu.edu.tw



Reply With Quote
  #5  
Old   
Warren Young
 
Posts: n/a

Default Re: Issue with MySQL++ - 11-15-2005 , 03:06 PM



Death Gauge wrote:
Quote:
I did this:

mkdir c:\mysql\lib\gcc
cd c:\mysql\lib\gcc
dlltool -k -d c:\mysql++\libmysqlclient.def -l libmysqlclient.a

and then typed makemake mingw and make (renamed mingw32-make to simply
make). It compiles fine until it suddenly hits the before mentioned error.
Okay, then update libmysqlclient.def appropriately. For instance,
you'll see that 'mysql_more_results' is listed alone on the line, but
the linker is telling you it wants 'mysql_more_results@4' instead. If
you submit a patch, include these changes.

--
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe: http://lists.mysql.com/plusplus?unsu...ie.nctu.edu.tw



Reply With Quote
  #6  
Old   
Death Gauge
 
Posts: n/a

Default Re: Issue with MySQL++ - 11-16-2005 , 09:00 AM




Oddly that didn't fix it. I added @4 to the end of both errors and then did
makemake mingw and make just to get the same errors. When I check the
libmysqclient.dep file and it still pops out the errors with @4 on it:/.


--Death Gauge
"How do you gauge your death?!"




----Original Message Follows----
From: Warren Young <mysqlpp (AT) etr-usa (DOT) com>
To: MySQL++ Mailing List <plusplus (AT) lists (DOT) mysql.com>
Subject: Re: Issue with MySQL++
Date: Tue, 15 Nov 2005 14:05:51 -0700

Death Gauge wrote:
Quote:
I did this:

mkdir c:\mysql\lib\gcc
cd c:\mysql\lib\gcc
dlltool -k -d c:\mysql++\libmysqlclient.def -l libmysqlclient.a

and then typed makemake mingw and make (renamed mingw32-make to simply
make). It compiles fine until it suddenly hits the before mentioned error.
Okay, then update libmysqlclient.def appropriately. For instance, you'll
see that 'mysql_more_results' is listed alone on the line, but the linker is
telling you it wants 'mysql_more_results@4' instead. If you submit a patch,
include these changes.

--
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe: http://lists.mysql.com/plusplus?unsu...mail (DOT) com

__________________________________________________ _______________
Don’t just search. Find. Check out the new MSN Search!
http://search.msn.click-url.com/go/o...ave/direct/01/


--
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe: http://lists.mysql.com/plusplus?unsu...ie.nctu.edu.tw



Reply With Quote
  #7  
Old   
Warren Young
 
Posts: n/a

Default Re: Issue with MySQL++ - 11-16-2005 , 11:45 AM



Death Gauge wrote:
Quote:
Oddly that didn't fix it. I added @4 to the end of both errors and then
did makemake mingw and make just to get the same errors.
Makemake will not rebuild the import library for you. You have to do
all that dlltool and such stuff listed in README.mingw again.

Also, from your report it isn't clear that you are editing
libmysqlclient.def. You need to add @WHATEVER to the items the linker
complained about.

--
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe: http://lists.mysql.com/plusplus?unsu...ie.nctu.edu.tw



Reply With Quote
  #8  
Old   
Death Gauge
 
Posts: n/a

Default Re: Issue with MySQL++ - 11-16-2005 , 12:41 PM




Well I got it to compile after making those corrections and rerunning
everything. Now the only error I'm getting is this:

g++ -shared -o mysqlpp.dll debug/coldata.o debug/connection.o
debug/datetime.o
debug/field_names.o debug/field_types.o debug/fields.o debug/manip.o
debug/myset
..o debug/qparms.o debug/query.o debug/result.o debug/row.o
debug/sql_string.o de
bug/string_util.o debug/type_info.o debug/vallist.o -Lc:\mysql\lib\gcc
-lmysqlc
lient
del /q "..\examples\debug\"*.exe
Could Not Find C:\mysql++\examples\debug\*.exe
make[1]: *** No rule to make target `mysqlpp.a', needed by `all'. Stop.
make[1]: Leaving directory `C:/mysql++/lib'
make: *** [all] Error 2


--Death Gauge
"How do you gauge your death?!"




----Original Message Follows----
From: Warren Young <mysqlpp (AT) etr-usa (DOT) com>
To: MySQL++ Mailing List <plusplus (AT) lists (DOT) mysql.com>
Subject: Re: Issue with MySQL++
Date: Wed, 16 Nov 2005 10:45:38 -0700


Makemake will not rebuild the import library for you. You have to do all
that dlltool and such stuff listed in README.mingw again.

Also, from your report it isn't clear that you are editing
libmysqlclient.def. You need to add @WHATEVER to the items the linker
complained about.

--
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe: http://lists.mysql.com/plusplus?unsu...mail (DOT) com

__________________________________________________ _______________
On the road to retirement? Check out MSN Life Events for advice on how to
get there! http://lifeevents.msn.com/category.aspx?cid=Retirement


--
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe: http://lists.mysql.com/plusplus?unsu...ie.nctu.edu.tw


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.