Hi,
I have implemented a constraint named "Aminadistinct(Space& home, const 
IntVarArgs& x, IntConLevel icl)", I considere just the value consistency,
so, I generate the following files:

gecode/int/Aminadistinct.hh
gecode/int/Aminadistinct.cpp
gecode/int/AminaDistinct/val.hpp

for the compilation, I modified the makefile, by adding these three files to 
INTSRC0, INTHDR0 and SETBUILDDIRS.

when I compile gecode :
$make
$make install

no error obtained, 

but when I call Aminadistinct(...) through an example; i obtained an error 
message after the second command:


$g++ -I/usr/local/include/ -c example.cpp
$g++ -L/usr/local/lib/ example.o -lgecodeint -lgecodesearch

example.o: In function `example::example()':
example.cpp:(.text._ZN6exampleC1Ev[example::example()]+0x1e5): undefined 
reference to `Gecode::Aminadistinct(Gecode::Space&, 
Gecode::VarArgArray<Gecode::IntVar> const&, Gecode::IntConLevel)'
collect2: ld a retourné 1 code d'état d'exécution

the question is how to compile a new propagator?

thanks;
amina.

_________________________________________________________________
Avec Windows Live, vous organisez, retouchez et partagez vos photos.
http://www.microsoft.com/northafrica/windows/windowslive/products/photo-gallery-edit.aspx
_______________________________________________
Gecode users mailing list
us...@gecode.org
https://www.gecode.org/mailman/listinfo/gecode-users

Reply via email to