igraph-help
[Top][All Lists]
Advanced

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

Re: [igraph] Segfault on using the igraph_community_leading_eigenvector(


From: Tamas Nepusz
Subject: Re: [igraph] Segfault on using the igraph_community_leading_eigenvector() function
Date: Fri, 27 May 2016 00:07:24 +0200

> 64-bit Fedora 22. I am compiling the program using the following command:
> gcc igraph_community_leading_eigenvector.c -I/usr/local/include/igraph
> -L/usr/local/include/igraph -ligraph -o igraph_community_leading_eigenvector

Totally a stab in the dark, but it seems like you have multiple
versions of igraph installed on your machine if the above command
works. One version resides in /usr/local/lib, the other one in
/usr/lib. Since you specified the library path in the gcc invocation
as /usr/local/include/igraph, and that folder does not contain
libigraph.so (because it's in /usr/local/lib), the compiler simply
picks up the one in /usr/lib instead. So, you end up compiling and
linking an executable for the version of igraph installed in /usr/lib,
but the interface specified in the header file is incompatible with
that because it comes from /usr/local/include.

T.



reply via email to

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