gcc-4.8.x with dwarf-2 debugging information

Jonathan Wakely jwakely.gcc@gmail.com
Thu Nov 21 16:02:00 GMT 2013


On 21 November 2013 11:51, Marc Glisse wrote:
> On Thu, 21 Nov 2013, tassos_souris wrote:
>
>> Also, when i
>> used my new gcc command /home/gcc/bin/g++ myapp and used ldd a.out i saw
>> that it still uses the system wide standard libraries from /usr /x86.xxxx
>> (and stuff). Shouldn't it use the libraries from its install directory?
>
>
> Look for -Wl,-rpath or LD_LIBRARY_PATH in the documentation of gcc, ld and
> ld.so. There is also something about this in:
> http://gcc.gnu.org/faq.html

And http://gcc.gnu.org/onlinedocs/libstdc++/faq.html#faq.how_to_set_paths
and http://gcc.gnu.org/onlinedocs/libstdc++/manual/using_dynamic_or_shared.html#manual.intro.using.linkage.dynamic

You might also find
http://gcc.gnu.org/onlinedocs/libstdc++/manual/debug.html#debug.req
useful.



More information about the Gcc-help mailing list