igraph-help
[Top][All Lists]
Advanced

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

Re: [igraph] Compile igraph c code on ubuntu with the -static switch?


From: Gábor Csárdi
Subject: Re: [igraph] Compile igraph c code on ubuntu with the -static switch?
Date: Sun, 29 Nov 2009 21:26:04 +0100

The following worked for me on ubuntu 9.04:

gcc -static -I /tmp/include/igraph/ -L /tmp/lib/ -o i1 i1.c  -ligraph
-lstdc++ -lm

igraph was installed with
./configure --prefix=/tmp

This was version 0.6, but it should work with other versions as well.

Best,
Gabor

On Sun, Nov 29, 2009 at 9:13 PM, Gang Su <address@hidden> wrote:
> Hi developers,
>
> I am new to Ubuntu.. right now I am trying to compile the example file here:
> http://igraph.sourceforge.net/doc/html/ch03s01.html
>
> However, the compiled binary will require igraph lib installed to run. I was
> trying
> with the -static switch to make the executable run independent of igraph
> library,
> but got tons of errors. What is the correct way of building library
> independent
> executables?
>
> Thanks
>
> Gang
>
>
> _______________________________________________
> igraph-help mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/igraph-help
>



-- 
Gabor Csardi <address@hidden>     UNIL DGM




reply via email to

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