[gecode-users] Problems following the document "Modeling with Gecode"

Roberto Castañeda rcas at kth.se
Wed Mar 25 23:56:30 CET 2009


Hi everybody!

I have just compiled and installed Gecode 3.0.1 in my system (Ubuntu 8.04.2, GCC 4.2.4), and followed religiously the steps given in the section 2 ("Getting started") from the document "Modeling with Gecode". But when I have tried to do a first compilation (section 2.3.3 of the document), I have realized that I need to add the option -c to the g++ command line in order to create the object file send-more-money.o, otherwise g++ does not succeed. The suggested line in the documentation is:

g++ -I<dir>/include send-more-money.cpp

But what actually works for me is:

g++ -I<dir>/include -c send-more-money.cpp

Is this a documentation bug or am I missing something?
Thanks for your time!

Roberto



More information about the gecode-users mailing list