dbTalk Databases Forums  

Build problems with VC2005

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


Discuss Build problems with VC2005 in the mailing.database.mysql-plusplus forum.



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

Default Build problems with VC2005 - 09-11-2006 , 06:32 AM






------=_NextPart_000_0039_01C6D5A6.720D4EC0
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: 7bit

Hi I'm trying to buil latest mysql++ with Visual studio 2005 an getting
following error.

Compiling...

connection.cpp

..\connection.cpp(165) : error C2065: 'ulong' : undeclared identifier

..\connection.cpp(165) : error C2143: syntax error : missing ')' before
'constant'

..\connection.cpp(165) : error C2059: syntax error : ')'

Build log was saved at
<file://c:\Programme\MySQL\mysql++\lib\Debug\mysqlpp\Build Log.htm>
file://c:\Programme\MySQL\mysql++\lib\Debug\mysqlpp\Build Log.htm

What's wrong?

Thx

Regards Thomas


------=_NextPart_000_0039_01C6D5A6.720D4EC0--


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

Default Re: Build problems with VC2005 - 09-12-2006 , 06:40 AM






Thomas Schneider wrote:
Quote:
connection.cpp

.\connection.cpp(165) : error C2065: 'ulong' : undeclared identifier
It would seem that you have an old version. Please download the current
version from:

http://tangentsoft.net/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   
Shigeya Suzuki
 
Posts: n/a

Default Re: Build problems with VC2005 - 09-12-2006 , 07:46 AM



Hi,

I'm running on different architecture (MacOS X, at least). I'm using
MySQL++ 2.1.1.

I could compile it before (before 5.0.24 and earlier), but after I
upgrade MySQL client library to 5.0.24a, I have same problem described here.

I force modified connection.cpp to include my_global.h to make it
compile (with lots of warnings - I was in hurry..) yesterday.

Is there anyone having similar problem?

Note that I had other problem but it was solved after I re-build whole
MySQL++ after installing MySQL 5.0.24a. (Is there any ABI change there?
since it was security patch, I just blindly installed it..)

shigeya

Warren Young wrote:
Quote:
Thomas Schneider wrote:

connection.cpp

.\connection.cpp(165) : error C2065: 'ulong' : undeclared identifier

It would seem that you have an old version. Please download the current
version from:

http://tangentsoft.net/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
  #4  
Old   
Warren Young
 
Posts: n/a

Default Re: Build problems with VC2005 - 09-12-2006 , 11:10 AM



Shigeya Suzuki wrote:
Quote:
Is there anyone having similar problem?
There are several people having problems with 5.0.24. I don't yet know
what they changed or what the complete scope of the problem is.
Honestly, since I have no good reason to run 5.0 here, I haven't had a
good excuse to try and find the problem. If you want it fixed before I
get that motivation, you're going to have to investigate it yourself.

--
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   
Mueller, Martin C.
 
Posts: n/a

Default Re: Build problems with VC2005 - 09-14-2006 , 09:05 AM



------_=_NextPart_001_01C6D805.7ED99C6F
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Quote:
From: Warren&nbsp;YoungDate: September 12 2006 6:07pm
Subject: Re: Build problems with VC2005
=20
Shigeya Suzuki wrote:
=20
Is there anyone having similar problem?

There are several people having problems with 5.0.24. I don't yet =
know=20
what they changed or what the complete scope of the problem is.=20
Honestly, since I have no good reason to run 5.0 here, I haven't had a =

good excuse to try and find the problem. If you want it fixed before =
I=20
get that motivation, you're going to have to investigate it yourself.
My investigation showed, that=20

1) With mysql 5.0 you're supposed to include my_global.h before mysql.h =
(see =
http://dev.mysql.com/doc/refman/5.0/...ompiling.html). A =
"typedef unsigned long ulong" is contained in there, conditioned for MS =
VC.

2) If you do that with mysql++, MSVC .NET 2003 seems to prematurely =
instantiate a lot of templates which are later specialized. Which =
templates these are depend on the sequence of #includes

3) I solved the problem for now by putting "typedef unsigned long ulong" =
into mysql++'s platform.h

The examples all seem to run fine.

Just my 2pc,
MCM



--------------------------------------------
Martin C. M=FCller
Siemens AG, Corporate Technology
Combinatorial Optimization, CT SE 6
Otto-Hahn-Ring 6, D-81730 M=FCnchen
Internet: http://www.ct.siemens.com
--------------------------------------------



------_=_NextPart_001_01C6D805.7ED99C6F--


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

Default Re: Build problems with VC2005 - 09-14-2006 , 12:27 PM



Mueller, Martin C. wrote:
Quote:
My investigation showed, that
Thanks for looking into this. Clearly more work is needed to decide on
the cleanest fix, but at least now I have a place to start.

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