It does compile under Visual Studio 2008. Thanks.
Lingrui Liao ----- Original Message ----- From: "Christian Schulte" <[email protected]> To: "'Lingrui Liao'" <[email protected]>; <[email protected]> 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: [email protected] [mailto:[email protected]] On Behalf > Of Lingrui Liao > Sent: Tuesday, March 31, 2009 3:14 AM > To: [email protected] > 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 > [email protected] > https://www.gecode.org/mailman/listinfo/gecode-users > > _______________________________________________ Gecode users mailing list [email protected] https://www.gecode.org/mailman/listinfo/gecode-users
