[glug-t] Re: to see the list of library
- From: "Vijay Kumar B." <ec10052@xxxxxxxxxxxxx>
- To: glug_t@xxxxxxxxxxxxx
- Date: Wed, 14 May 2003 12:55:46 GMT
> Hi..
> when we use sin(x) function in our c program we usually include -lm option
> during the compilation and similarly -lSDL if we use SDL library(but other
> options are required too).so how on earth one can know all these cryptic
> keywords that are required to be used during compilation when we use special
> library(that are linked by default)...any suggestions..
Library names always take this form libxxx. Examples libSDL - SDL library, libm
- math library, etc. To link a particular library with your program, drop of the
lib prefix and use it with the -l option in the compiler command line. 'lib' and
'.a' is added and is searched in the library path.
- Vijay
Non-free* software sucks. - RMS
* 'free' as in freedom.
---------------------------------------------
This message was sent from RECTMAIL.
http://www.rect.edu/ or http://rangoli.rect.ernet.in/
---------------------------------------------------------------
To unsubscribe send a mail to glug_t-request@xxxxxxxxxxxxx with
'unsubscribe' as subject.
Website: http://glugt.linuxisle.com
Other related posts: