dbTalk Databases Forums  

undefined reference to 'mysql_shutdown@4':help!

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


Discuss undefined reference to 'mysql_shutdown@4':help! in the mailing.database.mysql-plusplus forum.



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

Default undefined reference to 'mysql_shutdown@4':help! - 01-13-2006 , 05:00 AM






Hi! this is the first time I use mysql++.
While I'm compiling examples (MinGW[latest version] on Windows XP SP2)
I obtain this error:

g++ -L..\lib\debug -Lc:\mysql\lib\gcc debug/resetdb.o debug/util.o -oresetdb.
exe
-lmysqlpp -lmysqlclient
...\lib\debug/libmysqlpp.a(connection.o)(.text+0x395):connection .cpp: undefined
reference to `mysql_shutdown@4'

mingw32-make[1]: *** [resetdb.exe] Error 1
*******
the version of mysql++ is 2.0.7.
Can anyone help me? Thanks.
Fabrizio

--
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   
Warren Young
 
Posts: n/a

Default Re: undefined reference to 'mysql_shutdown@4':help! - 01-14-2006 , 04:12 AM






brizio85 (AT) alice (DOT) it wrote:
Quote:
While I'm compiling examples (MinGW[latest version] on Windows XP SP2)
MinGW is not currently supported. Search the mail list archives for
details.

--
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   
I.Vecchi
 
Posts: n/a

Default Re: undefined reference to 'mysql_shutdown@4':help! - 01-16-2006 , 03:56 PM




brizio85 (AT) alice (DOT) it ha scritto:

Quote:
Hi! this is the first time I use mysql++.
While I'm compiling examples (MinGW[latest version] on Windows XP SP2)
I obtain this error:

g++ -L..\lib\debug -Lc:\mysql\lib\gcc debug/resetdb.o debug/util.o -oresetdb.
exe
-lmysqlpp -lmysqlclient
..\lib\debug/libmysqlpp.a(connection.o)(.text+0x395):connection .cpp: undefined
reference to `mysql_shutdown@4'

mingw32-make[1]: *** [resetdb.exe] Error 1
*******
the version of mysql++ is 2.0.7.
Can anyone help me? Thanks.
In order to solve this specific problem you have to edit your
mysqlclient.def file, add @4 to mysql_shutdown and adjust any other
undefined reference in the same way, then apply dlltools, as described
in the documentation.
See the Windows paragraph of the tutorial at
http://www.synnottsoftware.com/tutorials/mysqlbasic.php to get the hang
of the issue. In this way you should be able to compile and link
mysql++ as a static library. It may take you some extra effort to get
there (e.g. you may have to run mingw32-make several times after it
dies down on some "usr/bin/sh -c: line 1: unexpected EOF while looking
for matching `"'). Every mingw32-make run will bring you further, just
don't make clean. Using Mingw I have successfully compiled mysql++
2.0.7 on my compute and run some of the examples .

As for building the DLL, that's another story, ... and a challenge.

In gamba.

t.



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.