[gecode-users] compilation question

Alejandro Arbelaez alejandro.arbelaez at gmail.com
Tue Mar 11 18:07:41 CET 2008


Hi all,

I'm trying to compile gecode with gcc 4.2 and I'm getting the following
error:

g++-4.2 -I. -DNDEBUG -fvisibility=hidden -fPIC -Wextra -Wall -pipe -ggdb -O3
-fno-strict-aliasing -finline-limit=3000 -ffast-math   \
    -c -o gecode/support/buddy/bddio.o  gecode/support/buddy/bddio.c
./gecode/support/buddy/bdd.h: In function 'int bdd_loaddata(FILE*)':
./gecode/support/buddy/bdd.h:508: error: 'bdd::bdd(BDD)' is private
gecode/support/buddy/bddio.c:558: error: within this context
./gecode/support/buddy/bdd.h:508: error: 'bdd::bdd(BDD)' is private
gecode/support/buddy/bddio.c:558: error: within this context
gecode/support/buddy/bddio.c:558: error: cannot convert 'bdd' to 'BDD' for
argument '1' to 'BDD bdd_addref(BDD)'

I think I've a problem installing gcc 4.2 but I'm not sure about that, any
clue?


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


Thanks in advance,
Alejandro
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.ps.uni-sb.de/pipermail/users/attachments/20080311/431684b9/attachment.htm>


More information about the gecode-users mailing list