This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: gcc library and linker documentation
- From: Justin Findlay <findlay at cosmic dot utah dot edu>
- To: Eljay Love-Jensen <eljay at adobe dot com>
- Cc: Joseph Jolic <karloj at bigpond dot com>, <gcc-help at gcc dot gnu dot org>, <josephjolic at hotmail dot com>
- Date: Mon, 15 Dec 2003 09:43:42 -0700 (MST)
- Subject: Re: gcc library and linker documentation
On Mon, 15 Dec 2003, Eljay Love-Jensen wrote:
> Hi Joseph,
>
> >how to search and get relevant documentation for using certain functions
>
> Stroustrup's C++ Programming Language (3rd ed or Special ed).
>
> Cline, Lomow, Girou's C++ FAQs (2nd ed).
http://www.cplusplus.com
http://www.sgi.com/tech/stl/
//although the STL documented is a little older than the ANSI/ISO C++
//standard
/*MSDN also has some instructive pedagogical examples*/
> >I'm unclear as to when I would need to use the L option to specify libraries
> on the command line.
>
> The -L option is used to specify the path which libraries are located. For instance, if you had some libraries at ~jolic/3party/hotdog you could specify -L~jolic/3party/hotdog and GCC would use that path location to resolve the -lhotdog library.
>
> Without the -L~jolic/3party/hotdog, GCC wouldn't know to check in that location for libhotdog.so or libhotdog.a.
>
> >Do you know of any tutorials on the internet that would cover these kinds of fundamentals.
>
> <http://gcc.gnu.org/onlinedocs/>
Justin