[Top][All Lists]

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

Re: [igraph] C igraph compilation problem on Lion

From: Tamas Nepusz
Subject: Re: [igraph] C igraph compilation problem on Lion
Date: Fri, 04 Nov 2011 17:34:14 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:7.0.1) Gecko/20110929 Thunderbird/7.0.1


> Building target: test2
> Invoking: GCC C Linker
> gcc -L/opt/local/lib -o "test2"  ./src/test2.o   
> -l/opt/local/lib/libigraph.a
> ld: library not found for -l/opt/local/lib/libigraph.a
Do you have a file named /opt/local/lib/libigraph.a? It might be the case
that you only have the dynamic library, which is named
/opt/local/lib/libigraph.so or libigraph.dylib.

If you do have libigraph.a in /opt/local/lib, check whether it's built for
i386 or x86_64 (use "file /opt/local/lib/libigraph.a" to figure it out). If
it's the i386 version, add "-arch i386" to the compiler flags to make sure
that your executable is also built for i386.


reply via email to

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