List:MySQL++« Previous MessageNext Message »
From:Martin C. Mueller Date:September 14 2006 1:55pm
Subject:Re: Build problems with VC2005
View as plain text  
> From: Warren YoungDate: September 12 2006 6:07pm
> Subject: Re: Build problems with VC2005
> 
> Shigeya Suzuki wrote:
>> 
>> 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.

My investigation showed, that 

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/en/windows-client-compiling.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üller
Siemens AG, Corporate Technology
Combinatorial Optimization, CT SE 6
Otto-Hahn-Ring 6, D-81730 München
Internet: http://www.ct.siemens.com
--------------------------------------------



Thread
Build problems with VC2005Thomas Schneider11 Sep
  • Re: Build problems with VC2005Warren Young12 Sep
    • Re: Build problems with VC2005Shigeya Suzuki12 Sep
      • Re: Build problems with VC2005Warren Young12 Sep
Re: Build problems with VC2005Martin C. Mueller14 Sep
  • Re: Build problems with VC2005Warren Young14 Sep