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 -- Marc Glisse