I'm compiling my code using g++ -L/lib64 -I /git/src ...
but I get
/usr/bin/ld: cannot find -lstdc++
/usr/bin/ld: cannot find -lm
/usr/bin/ld: cannot find -lgcc_s
/usr/bin/ld: cannot find -lc
/usr/bin/ld: cannot find -lgcc_s
I checked my /lib64/ and found that these libs are actually present
/usr/lib64/libstdc++.so.6 -> libstdc++.so.6.0.19
/usr/lib64/libm.so -> ../../lib64/libm.so.6
/usr/lib64/libgcc_s.so.1 -> libgcc_s-4.8.5-20150702.so.1
/usr/lib64/libc.so.6 -> libc-2.17.so
When I try ld -lc --verbose
this too fails. All the libs are present in /lib64
and the path is included still g++ fails to locate them. Any Idea what is going on ?