gcc libraries paths

robertdaleweir robertdaleweir@gmail.com
Tue Jan 31 02:38:00 GMT 2017



Jonathan Wakely-4 wrote
> 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.

Thank you, that helps so much.



--
View this message in context: http://gcc.1065356.n8.nabble.com/gcc-libraries-paths-tp1345158p1345191.html
Sent from the gcc - Help mailing list archive at Nabble.com.



More information about the Gcc-help mailing list