[gecode-users] Compiling Gecode in gcc 3.3 success

Javier Mena javimena at gmail.com
Mon Nov 7 16:12:02 CET 2005


The problem is that the file int/gcc/graphsup.icc has calls in the style:

vrn->matched<UBC>()

I have changed of all the calls to (that comforms c++ standard):

vrn->template matched<UBC>()

And it works. I have read the book of Stroustrup (The C++ Programming
Language), but I cannot understand if one should always have to use
the "template" keyword before that kind of calls. So, I can't
understand exactly why does the compiler doesn't recognize the call
sometimes.

After that there another problem. I cannot compile gecode because
there is a bug in gcc 3.3.6:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=7906

If I put away the file matrix.icc and all its dependencies (just
examples) gecode compiles.

What do you think?

2005/11/6, tack at ps.uni-sb.de <tack at ps.uni-sb.de>:
> > Hi, do you want to support gcc 3.3.x?
> >
> > I can compile almost all gecode (except minimodel and of course,
> > examples) using gcc 3.3.6 in gentoo linux (with a modification in the
> > source code of gecode).
>
> That really depends on the modifications. We do not want to put any hacks
> and workarounds into the code just to support gcc 3.3. If it is clean
> standard C++ and doesn't look uglier than what we have now, please tell us
> how you did it ;-)
> Otherwise, if it's something that will need a comment in the code à la "we
> shouldn't be doing it this way but gcc 3.3 forces us", we do not want to
> support it. We already have to test every check-in with a bunch of
> different compilers on different operating systems, so maintaining another
> one that is even outdated is beyond our manpower.
>
> Cheers,
>   Guido
>
>


--
Javier Andrés Mena Zapata
University of  Valle
Cali - Colombia




More information about the gecode-users mailing list