Hi,
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.
Cheers,
-- T.