[gecode-users] Error when loading library

Juan Carlos carlvall at gmail.com
Fri Mar 28 16:52:11 CET 2008


I have a related problem, I`ve installed the last version of gecode in 2
different machines and tried to use it in a project that I`ve been
developing on gecode 2.0 some months ago. In the first machine it works
fine, in the second one  I get a lot of "undefined references" trying to use
element, and post.  It happens either installing it in /usr/ or just using
the compiled libs, either with gcc 4.1 or gcc 4.3, either with gist or
without gist. (your examples works fine, but I never tried to compile them
by myself ).

could it be a problem of my O.S?

Cheers.

On Fri, Mar 28, 2008 at 10:48 AM, Juan Carlos <carlvall at gmail.com> wrote:

> I have a related problem, I`ve installed the last version of gecode in 2
> different machines and tried to use it in a project that I`ve been
> developing on gecode 2.0 some months ago. In the first machine it works
> fine, in the second one  I get a lot of "undefined references" trying to use
> element, and post.  It happens either installing it in /usr/ or just using
> the compiled libs, either with gcc 4.1 or gcc 4.3, either with gist or
> without gist. (your examples works fine, but I never tried to compile them
> by myself ).
>
> could it be a problem of my O.S?
>
> Cheers.
>
>
> On Fri, Mar 28, 2008 at 4:35 AM, Mikael Zayenz Lagerkvist <
> zayenz at gmail.com> wrote:
>
> > You must set your paths correctly. For linking against shared
> > libraries, this means setting LD_LIBRARY_PATH.
> >
> > See also http://www.gecode.org/gecode-doc-latest/PageUsage.html
> >
> > Cheers,
> > Mikael
> >
> > On Fri, Mar 28, 2008 at 9:07 AM, Dhananjay Thiruvady
> > <Dhananjay.Thiruvady at infotech.monash.edu.au> wrote:
> > > Hi all,
> > >
> > > 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
> > >
> > > This also happens with the examples. When linking libraries
> > statically, I get the following error when I compile:
> > >
> > > /usr/bin/ld: cannot find -lgecodesearch
> > >
> > > 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
> > > users at gecode.org
> > > https://www.gecode.org/mailman/listinfo/gecode-users
> > >
> >
> >
> >
> > --
> > Mikael Zayenz Lagerkvist, http://www.ict.kth.se/~zayenz/<http://www.ict.kth.se/%7Ezayenz/>
> >
> > _______________________________________________
> > Gecode users mailing list
> > users at gecode.org
> > https://www.gecode.org/mailman/listinfo/gecode-users
> >
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.ps.uni-sb.de/pipermail/users/attachments/20080328/041c7948/attachment.htm>


More information about the gecode-users mailing list