c++ - Linking to older version of gcc -


i have centos 6.2 (64bit gcc 4.4.6 default). unfortunately, code compiles gcc 3.4.6, installed gcc separately (from source) under /home/rajat/local. on linking simple "hello world" program, following.

>ldd a.out  linux-vdso.so.1 =>  (0x00007fff215ff000) libstdc++.so.6 => /home/rajat/local/lib64/libstdc++.so.6 (0x00007f11853e7000) libm.so.6 => /lib64/libm.so.6 (0x00000033be400000) libgcc_s.so.1 => /home/rajat/local/lib64/libgcc_s.so.1 (0x00007f11851ce000) libc.so.6 => /lib64/libc.so.6 (0x00000033bd000000) /lib64/ld-linux-x86-64.so.2 (0x00000033bcc00000) 

while stdc++ , gcc link 3.4.6 libraries, libm , libc still link default libraries. ok?? 3.4.6 installation did not produce libm or libc libraries?

yes, that's ok.

the libc/libm part of glibc, not gcc compiler. libstdc++ on other hand ls part of gcc.


Comments

Popular posts from this blog

c# - SVN Error : "svnadmin: E205000: Too many arguments" -

c# - Copy ObservableCollection to another ObservableCollection -

All overlapping substrings matching a java regex -