dbTalk Databases Forums  

Building w/ Mingw Dev Studio & WxWidgets

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


Discuss Building w/ Mingw Dev Studio & WxWidgets in the mailing.database.mysql-plusplus forum.



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

Default Building w/ Mingw Dev Studio & WxWidgets - 07-20-2005 , 01:46 PM






Hi All,

I finally got MySQL++ (1.7.40) built with one of the included console
based examples. Now I am struggling with building MySQL++ along with
WxWidgets using MinGW Developer Studio. All I do is include
mysql++.h into the main header and I get the following error from the
coldata.h file:

...\Shared\MySQL\1.7.40\lib\coldata.h: In member function `Type
mysqlpp::ColData_Tmpl<Str>::conv(Type) const':
...\Shared\MySQL\1.7.40\lib\coldata.h:298: error: cannot use typeid
with -fno-rtti

Any ideas would be appreciated.

Regards,

Diilb

--
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: Building w/ Mingw Dev Studio & WxWidgets - 07-20-2005 , 05:14 PM






Robin wrote:

Quote:
I finally got MySQL++ (1.7.40) built
Pray tell, how? I spent a few hours last night trying to get a MySQL C
API DLL import library that would link, but failed.

Quote:
..\Shared\MySQL\1.7.40\lib\coldata.h:298: error: cannot use typeid
with -fno-rtti
So don't do that, then. -fno-rtti turns off run-time type
identification, which is indeed required by MySQL++.

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

Default Re: Building w/ Mingw Dev Studio & WxWidgets - 07-20-2005 , 07:39 PM



Quote:
Pray tell, how? I spent a few hours last night trying to get a MySQL C
API DLL import library that would link, but failed.
On the MySQL++ FAQ under "Will it build under Cygwin?" =20
All I did was follow those instructions to do the dll exports with the
help of http://www.emmestech.com/software/cy...43/moron1.html

After torturing myself for about an hour, and satisfying MingGW Dev
Studio requirements... I got it all working with 1.7.40. And it is
way better then the older API which I downloaded and have been using
from like a year ago.

Anyway if you need more info... let me know.

Quote:
So don't do that, then. -fno-rtti turns off run-time type
identification, which is indeed required by MySQL++.
I had the C++ runtime & Expection handling options turned off in my
project settings... dah.

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

Default Re: Building w/ Mingw Dev Studio & WxWidgets - 07-22-2005 , 09:14 AM



Robin wrote:
Quote:
On the MySQL++ FAQ under "Will it build under Cygwin?"
All I did was follow those instructions to do the dll exports
Hmmmm...I was hoping you'd done something I didn't know about already.

Can you please send me the DEF file that pexports made on your system,
and let me know what version of MySQL you made it from? Thanks.

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

Default Re: Building w/ Mingw Dev Studio & WxWidgets - 07-22-2005 , 11:13 AM



Hmmm... I am not sure what version of the libmysql.dll I used however
I will email the def & dll directly to you.

I had to modify the def as per the "moron" instructions I linked to in
my latest post.

Regards.

On 7/22/05, Warren Young <mysqlpp (AT) etr-usa (DOT) com> wrote:
Quote:
Robin wrote:

On the MySQL++ FAQ under "Will it build under Cygwin?"
All I did was follow those instructions to do the dll exports
=20
Hmmmm...I was hoping you'd done something I didn't know about already.
=20
Can you please send me the DEF file that pexports made on your system,
and let me know what version of MySQL you made it from? Thanks.
=20
--
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe: http://lists.mysql.com/plusplus?unsub=3Ddiilbert.atlan=
tis (AT) gmail (DOT) com
=20

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