igraph-help
[Top][All Lists]
Advanced

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

Re: [igraph] [slightly OT] statically linked executable


From: Marco
Subject: Re: [igraph] [slightly OT] statically linked executable
Date: Mon, 16 May 2011 14:17:59 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.16) Gecko/20110506 Icedove/3.0.11

On 05/16/2011 02:05 PM, Tamas Nepusz wrote:
Marco,

If I compile with

gcc -ligraph trees.c -lm -o trees -L/usr/local/lib/
-I/usr/local/include/igraph -Wall -static
The order of arguments matter; -ligraph must come after -L I guess.


Dear Tamas,

this definitely changed something, thank you!

Now I am getting errors mentioning undefined references to math functions:
/usr/local/lib/libigraph.a(libigraph_la-random.o): In function `igraph_qnorm5': /home/marco/pasticci/igraph-0.5.4/src/random.c:493: undefined reference to `expm1' /home/marco/pasticci/igraph-0.5.4/src/random.c:497: undefined reference to `sqrt' /home/marco/pasticci/igraph-0.5.4/src/random.c:499: undefined reference to `log'

or xml-related stuff (a guess, tho):

/usr/local/lib/libigraph.a(libigraph_la-foreign-graphml.o): In function `igraph_i_graphml_add_attribute_key': /home/marco/pasticci/igraph-0.5.4/src/foreign-graphml.c:479: undefined reference to `xmlStrEqual' /home/marco/pasticci/igraph-0.5.4/src/foreign-graphml.c:482: undefined reference to `xmlStrEqual' /home/marco/pasticci/igraph-0.5.4/src/foreign-graphml.c:485: undefined reference to `xmlStrEqual' /home/marco/pasticci/igraph-0.5.4/src/foreign-graphml.c:486: undefined reference to `xmlStrEqual' /home/marco/pasticci/igraph-0.5.4/src/foreign-graphml.c:510: undefined reference to `xmlStrEqual'


Now I am very puzzled. I guess I need to provide -L of all the libraries igraph has been compiled with?

In the meantime, I managed to install in my home on the other machines a compiled version of the library and can run, at least locally, without the need of statically linked executables, even if, in the very near future, I will need to fix this.

Thanks,

marco



reply via email to

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