[gecode-users] compilation question

Guido Tack tack at ps.uni-sb.de
Tue Mar 11 19:36:40 CET 2008


Alejandro Arbelaez wrote:

> Hi all,
>
> I'm trying to compile gecode with gcc 4.2 and I'm getting the  
> following error:
[...]
> BTW:  my default compiler is i686-apple-darwin9-gcc-4.0.1 and I  
> installed i686-apple-darwin9-gcc-4.2.1. Finally I configured gecode  
> with the following characteristics
>
> ./configure --prefix=..... CC=g++-4.2 CXX=g++-4.2

That's the problem, you're trying to compile a C source file with g+ 
+.  You should configure like this:

./configure --prefix=..... CC=gcc-4.2 CXX=g++-4.2

Cheers,
	Guido





More information about the gecode-users mailing list