This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: gcc libraries paths
- From: Jonathan Wakely <jwakely dot gcc at gmail dot com>
- To: robertdaleweir <robertdaleweir at gmail dot com>
- Cc: gcc-help <gcc-help at gcc dot gnu dot org>
- Date: Tue, 31 Jan 2017 01:05:40 +0000
- Subject: Re: gcc libraries paths
- Authentication-results: sourceware.org; auth=none
- References: <1485821139980-1345158.post@n8.nabble.com>
On 31 January 2017 at 00:05, robertdaleweir wrote:
> I would like to know how to find the 'search path' when 'gcc' is compiling /
> linking and running. It appears that 'runtime' linking is at a different
> location than the 'compile and/or linking' libraries are located. I guess
> my need is to learn how to locate the 'path' that is searched when 1.0
> Compiling 2.0 Linking and finally 3.0 Runtime. Thanks for any help in this
> matter.
GCC's -v option will show you the paths used when compiling and link.
The runtime paths are nothing to do with GCC. If you're using
GNU/Linux see 'man ld.so' for details.