/usr/bin/ld: cannot find -lstdc++
When I make a program from source, I get this error:
Code:
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.4.3/libstdc++.so when searching for -lstdc++ Code:
root@srv:~/temp-build# dpkg -l | grep -r -i "libstdc" |
Maybe it's looking for libstdc++5. Many systems provide the older libstc++ for compatibility. For examples Red Hat provides the package compat-libstdc++-33. Ubuntu provides libstdc++5 and ia32-libs.
|
How can I find which version is required?
|
Still using Ubuntu ? Which version ?
Is this about osprey → Open64 ? http://svn.open64.net/listing.php?re...sprey%2F&rev=0 http://www.open64.net/home.html http://www.open64.net/download/open64-4x-releases.html |
Yes that is possible. I downloaded from AMD site.
|
By default, on x86_64 machines, the osprey compiler will be built in
32bit mode and libraries will be built in 32 and 64 bit modes to support compilation in either mode. See "HOWTO-INSTALL-* and other documentation. A 32bit libstdc++ library is required ( to create some objects.) Ubuntu 10.04, amd64 : sudo apt-get install g++-4.4-multilib The binary osprey 'open64-4.2.4-0.x86_64.rpm' works perfect on Ubuntu 10.* https://sourceforge.net/projects/ope...4.rpm/download sudo rpm -Uvh --nodeps open64-4.2.4-0.x86_64.rpm .. |
Can everyone give me a linux root ?
|
All times are GMT -5. The time now is 08:37 AM. |