[gecode-users] Compatibility with Visual C++

Lingrui Liao lingrui at gmail.com
Wed Apr 1 14:32:46 CEST 2009


It does compile under Visual Studio 2008.

Thanks.

Lingrui Liao
----- Original Message ----- 
From: "Christian Schulte" <cschulte at kth.se>
To: "'Lingrui Liao'" <lingrui at gmail.com>; <users at gecode.org>
Sent: Tuesday, March 31, 2009 3:32 AM
Subject: RE: [gecode-users] Compatibility with Visual C++


> Hi Lingrui,
>
> the easiest fix would be to upgrade to Visual Studio 2008 (that's what we
> are using and what we have used to compile the packages). Unfortunately we
> don't have access to Visual Studio 2005.
>
> Would that be possible?
>
> Cheers
> Christian
>
> --
> Christian Schulte, www.ict.kth.se/~cschulte/
>
>
> -----Original Message-----
> From: users-bounces at gecode.org [mailto:users-bounces at gecode.org] On Behalf
> Of Lingrui Liao
> Sent: Tuesday, March 31, 2009 3:14 AM
> To: users at gecode.org
> Subject: [gecode-users] Compatibility with Visual C++
>
> I've downloaded and installed Gecode-3.0.2-x86.msi (32-bit) on Windows XP.
> Instructions in the document "Modeling with Gecode" was followed to
> configure a Windows console application within Visual Studio 2005.
> When I was trying to compile an example program with Gecode, Visual
> C++ 2005 reports the following error(among some similar ones):
>
> ...
> Error 12 error C2248: 'Gecode::Branching::cast' : cannot access
> private member declared in class 'Gecode::Branching' c:\program
> files\gecode\include\gecode\kernel\core.hpp 3362
> ...
>
> the indicated site of error is like:
> ...
> forceinline const Branching&
>  Space::Branchings::branching(void) const {
>    return *Branching::cast(c);
>  }
> ...
>
>
> It seems to be a compatibility issue on private member accessibility.
> Does anyone know a way to work around it? Thanks.
>
> Lingrui Liao
>
> _______________________________________________
> Gecode users mailing list
> users at gecode.org
> https://www.gecode.org/mailman/listinfo/gecode-users
>
> 





More information about the gecode-users mailing list