[vox-tech] gcc and libraries

Jeff Newmiller vox-tech@lists.lugod.org
Fri, 11 Jan 2002 13:05:32 -0800 (PST)


On Fri, 11 Jan 2002, Peter Jay Salzman wrote:

> 
> man gcc:
> 
>        -llibrary
>               Use the library named library when linking.
> 
>               The linker searches a standard list of  directories
>               for  the  library,  which  is actually a file named
>               `liblibrary.a'.  The linker then uses this file  as
>               if it had been specified precisely by name.
> 
>               The  directories  searched include several standard
>               system directories plus any that you  specify  with
>               `-L'.
> 
> how can i get a list of what directories are considered "several
> standard system directories" by gcc?   i know the obvious ones.  i'd
> like to get a list of all of them.

gcc --help => gcc -print-search-dirs

---------------------------------------------------------------------------
Jeff Newmiller                        The     .....       .....  Go Live...
DCN:<jdnewmil@dcn.davis.ca.us>        Basics: ##.#.       ##.#.  Live Go...
                                      Live:   OO#.. Dead: OO#..  Playing
Research Engineer (Solar/Batteries            O.O#.       #.O#.  with
/Software/Embedded Controllers)               .OO#.       .OO#.  rocks...2k
---------------------------------------------------------------------------