* James Knott <james.knott@rogers.com> [2014-08-31 15:16]:
I'm trying to compile a gogoc client, something I have done successfully a few times before. However, this time I get an error: /usr/lib64/gcc/x86_64-suse-linux/4.8/../../../../x86_64-suse-linux/bin/ld: cannot find -lstdc++
After searching with Google, it appears the required file is libstdc++.so, which is located in /usr/lib64. According to the error, as far as I can tell, it's not looking in the appropriate directory. I started tracing the links: /usr/x86_64-suse-linux/bin/ld to /usr/bin/ld to /etc/alternatives/ld to /usr/bin/ld.bfd which appears to be an executable file
How did we manage to get from what's supposed to be a directory at /usr/x86_64-suse-linux/bin/ld to an executable at /usr/bin/ld.bfd??? There is also /usr/bin/ld, but it too is a file.
WTF???
If I understand your question correctly, the path above is to the "ld" program, which is the object code linker program (cf: ld(1)). The error report above does not specify the search path used by the linker for the object libs. Currently on my 13.1 x86_64 system, the libstdc++ objects are located here (I have both 32-bit and 64-bit libs installed): $ locate libstdc++ /usr/lib/libstdc++.so.6 /usr/lib/libstdc++.so.6.0.18 /usr/lib64/libstdc++.so.6 /usr/lib64/libstdc++.so.6.0.18 /usr/lib64/gcc/x86_64-suse-linux/4.8/libstdc++.a /usr/lib64/gcc/x86_64-suse-linux/4.8/libstdc++.so $ rpm -qf /usr/lib/libstdc++.so.6.0.18 libstdc++6-32bit-4.8.1_20130909-3.2.1.x86_64 $ rpm -qf /usr/lib64/libstdc++.so.6.0.18 libstdc++6-4.8.1_20130909-3.2.1.x86_64 Maybe you have to adjust the Library path to be searched (e.g., via the "-L" arg)? It's been a while for me, so I may be off. Or maybe you need to install one of the above RPMs. HTH, --Phil -- Philip Amadeo Saeli openSUSE, CentOS, RHEL psaeli@zorodyne.com -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org