how gcc determine the location of lib

Ian Lance Taylor ian@wasabisystems.com
Tue Nov 11 17:36:00 GMT 2003


"Zhendong Zhou \(Kyle\)" <zhouzhendong@hotmail.com> writes:

> Just wonder how gcc determine where libraries are located?
> I know there are some system directories which is determined at configure stage when installing gcc. How can I know what is the system directories for an existing system.

gcc -print-search-dirs

Documented here:
    http://gcc.gnu.org/onlinedocs/gcc-3.3.2/gcc/Debugging-Options.html

Ian



More information about the Gcc-help mailing list