On Fri 02 Sep 2011 03:02:10 Ilya Chernykh wrote:
On Friday 02 September 2011 03:00:54 you wrote:
On Friday 02 September 2011 02:55:16 Cristian Morales Vega wrote:
And what you need to do is put "-lz" *after* "-ltransform".
Why? This looks very strange for me.
Because it's the documented behaviour. From man ld:
"The linker will search an archive only once, at the location where it is specified on the command line. If the archive defines a symbol which was undefined in some object which appeared before the archive on the command line, the linker will include the appropriate file(s) from the archive. However, an undefined symbol in an object appearing later on the command line will not cause the linker to search the archive again."
The code that uses uncompress() is in libtransform.a (specifically in FSTransform.o) and so libz must be later in the command line.
I spent all the day on this package and I do not know how to add it before ltransform :-( I.e. I meant *after*
link to the package? -- Without Questions there are no Answers! _____________________________________________________________________ Alin Marin ELENA Advanced Molecular Simulation Research Laboratory School of Physics, University College Dublin ---- Ardionsamblú Móilíneach Saotharlann Taighde Scoil na Fisice, An Coláiste Ollscoile, Baile Átha Cliath ----------------------------------------------------------------------------------- http://alin.elenaworld.net ______________________________________________________________________