igraph-help
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[igraph] Re: igraph-help Digest, Vol 26, Issue 22


From: Bhalchandra Thatte
Subject: [igraph] Re: igraph-help Digest, Vol 26, Issue 22
Date: Fri, 26 Sep 2008 14:32:21 +0100

Thanks. My compilation and linking problem is fixed now. I was giving
the include path correctly, but the library path incorrectly.
But now I have a new question. When I run the program, it does not see
the shared library

./main: error while loading shared libraries: libigraph.so.0: cannot
open shared object file: No such file or directory

I guess I have to set some environment variable since I have installed
the package in a non-standard location (/work/local/...) But some
websites say you should never set LD_LIBRARY_PATH variable. Also, when
I run "ldd main" (here my program name is main), I get
"libigraph.so.0 => not found"
which probably means it is not linked correctly.

Thanks for your help.
Bhalchandra Thatte
-- 
Work:
Department of Statistics, 1 South Parks Road, University of Oxford,
Oxford OX1 3TG, United Kingdom
Phone: +44 (0)1865 285 366

>
> -l just means that you want to link against the igraph library. If you
> want to compile programs using igraph, you need
>
> 1) -I<igraph-include-directory>
> 2) -ligraph
> 3) -L<igraph-library-directory>
>
> <igraph-include-directory> is the directory where the igraph.h file is.
> <igraph-library-directory> is the directory where the libigraph.so
> file is (assuming Linux, for other operating systems it has a
> different name)
>
> If you want to compile and link in two separate steps, then use 1) for
> compilation and both 2) and 3) for linking.
>
> Hope it helps,
> Gabor




reply via email to

[Prev in Thread] Current Thread [Next in Thread]