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

Re: Bug#487026: ITP: velvet -- Sequence assembler for very short reads



On Fri, 20 Jun 2008, Charles Plessy wrote:

the zlib.h from /usr/include instead of the local one, and add -lm and
-lz to CFLAGS from CDBS. Any idea what -lm and -lz mean?

You are linking against the math library (-lm) and zlib (-lz).

Yes.

Aaah thank you Nelson, now I understand :) -lm and -lz are the same as
-l m and -l z; I thought that they were option names which size is two
characters :)

Uhm, I have never seen the notation '-l m' (with the space) and do not
even know whether it works (probably if you have read it).  Normally
you specify libraries always this way:

    -l<lib>

where <lib> is the name of a library file without the leading 'lib'
so -lm links against libm.a and -lz links against libz.a.
The libraries are searched in the default library path of your system
(/usr/lib) and you can specify additional pathes for libraries with
the -L parameter for the linker (which has to be specified _before_
the option asking for a library in this path).

Am I not statically linking ?

If I'm not completely missleaded dynamic linking is the default.
You can verify this by "ldd <your_executable>".  If libm and libz
are in the list of dynamic libraries everything went as expected.

Kind regards

         Andreas.

--
http://fam-tille.de


Reply to: