This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Linking options
- From: Jouko Marjonen <Jouko dot Marjonen at vtt dot fi>
- To: gcc-help at gcc dot gnu dot org
- Date: Thu, 29 Aug 2002 13:24:24 +0300 (EET DST)
- Subject: Linking options
- Reply-to: Jouko Marjonen <Jouko dot Marjonen at vtt dot fi>
Dear Sir/Mrs,
I have a great need to apply mathematical function in my work. The 'man gcc'
advices me to compile my program with -lm option.
According to 'man gcc' the '-l<lib>' tells to linkker to include the library
<lib> followed by 'l'. If 'm' is the library where does is locate in UNIX?
A general hint is that the MAN page on a specific function MIGHT tell
what are required options to include any library with the calling program.
But what to do when no such option information is offered in the manual
page?
I am especially interrested in to call delay()-function which requires
<sys/ddi.h> and <sys/types.h> to be included. Therefore, the question is:
What the option should I use with gcc to do the job?
I also like to know, is there any covering source of information that can tell
what binary libraries are linked with what functions? The 'man' -pages would
be a good place for such an information. So. is it possible to update the manu-
al pages with that information.
If you have time, willigness and interrest to help me with this puzzle, I
would appreciate your efforts very much.
With Best regards,
******************** Jouko Marjonen *****************************************
********** VTT Electronics / Microelectronics *****************************
********* P.O.Box 1101, FIN-02044 VTT, Finland ****************************
******** Tel. +358 9 456 6626, Fax +358 9 456 7012 *************************
************* e-mail: jouko.marjonen@vtt.fi *****************************