Thanks Guido, Mikael, Guido Tack <[EMAIL PROTECTED]> wrote:> > Dhananjay Thiruvady wrote: >> I've got the following problem when I try to execute programs: >> >> error when loading libraries: libgecodesearch.so.12: cannot open >> shared object file: No such file or directory > > You have to add the directory that contains the .so files to the > LD_LIBRARY_PATH, or install gecode in a location that is already on > the LD_LIBRARY_PATH. >
This is now sorted out. Thanks. >> This also happens with the examples. When linking libraries >> statically, I get the following error when I compile: >> >> /usr/bin/ld: cannot find -lgecodesearch > > Hm, this might also be a path issue. Make sure that libgecodesearch.a > is found in one of the directories mentioned in the -L compiler > switches. > For this I tried the following (from the documentation): -L/usr/local/lib -lgecodesearch where the libraries are in /usr/local/lib. But the same error remains. The options I use are -static -Wl,--whole-archive to create a static executable. > Cheers, > Guido > >> >> >> I am running gcc 4.1.3 on ubuntu 7.10 and gecode-2.1.1. Any tips on >> how I can sort this out will be great. Thanks. >> >> Dhananjay >> >> _______________________________________________ >> Gecode users mailing list >> [EMAIL PROTECTED] >> https://www.gecode.org/mailman/listinfo/gecode-users > > > _______________________________________________ > Gecode users mailing list > [EMAIL PROTECTED] > https://www.gecode.org/mailman/listinfo/gecode-users _______________________________________________ Gecode users mailing list [EMAIL PROTECTED] https://www.gecode.org/mailman/listinfo/gecode-users