Actually, when I tried to compile Gecode with MSVC 2005 there were way more errors than that (even central parts of the kernel would have to be rewritten in order to compile as there seems to be a quirk with friend declarations).
So the difference is between _compiling_ and _using_ Gecode with MSVC 2005. If you send me a patch I could add that to the trunk of Gecode but I would still not say that 2005 is supported (actually, we just added a check in Gecode's configure script that makes it barf if it does not find MSVC 2008 or better). Cheers Christian -- Christian Schulte, web.ict.kth.se/~cschulte/ -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Alin Sent: Tuesday, February 15, 2011 11:08 PM To: [email protected] Subject: Re: [gecode-users] Which version of MSVC on Windows? Alin <alin_pt@...> writes: > > This error is a known bug in MSVC 2005 > > http://connect.microsoft.com/VisualStudio/feedback/details/101942/error-c266 6-3-overloads-have-similar-conversions > > and has a workaround, but I don't think it's worth it > > http://connect.microsoft.com/VisualStudio/feedback/details/99178/the-compile r-declares-an-invalid-built-in-operator#details > > Thanks for all the info, now I can continue, > knowing that It's that compiler that does something wrong > and not me :D > Well actually i still need to stick with MSVC 2005, so I modified the code to compile with MSVC 2005, it's not that much work, only had to help the compiler in deciding what type to use: so what I did was to modify the files at the coresponding line gecode\gist\gist.hpp(163) gecode\gist\gist.hpp(167) gecode\gist\gist.hpp(171) gecode\gist\gist.hpp(175) gecode\driver\options.hpp(362) gecode\driver\options.hpp(366) gecode\driver\options.hpp(370) gecode\driver\options.hpp(374) and do a static cast to int for the parameter of the call: someobject[mustcast] like this example: from: _click[n_click++] to: _click[static_cast<int>(n_click++)] I imagine that there is no use in doing this for the new releases yourself, but if you want I can provide the modified source code to work with MSVC 2005 or even the already compiled binary files (I compiled it only without gist because of configuration problems with qt, but this should be fixed soon) Alin Gherman _______________________________________________ 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
