Cannot find-lstdc ++ Solution

Source: Internet
Author: User

An error is reported when 32-bit Android 4.04 source code is compiled in ubuntu12.10 64-bit today:

/Usr/bin/ld: Skipping incompatible/usr/lib/GCC/x86_64-linux-gnu/4.5.4/libstdc ++. so when searching for-lstdc ++/usr/bin/ld: Skipping incompatible/usr/lib/GCC/x86_64-linux-gnu/4.5.4/libstdc ++. A when searching for-lstdc ++/usr/bin/ld: cannot find-lstdc ++/usr/bin/ld: skipping incompatible/usr/lib/GCC/x86_64-linux-gnu/4.5.4/libgcc_s.so when searching for-lgcc_s/usr/bin/ld: cannot find-lgcc_s/usr/bin/ld: skipping incompatible/usr/lib/GCC/x86_64-linux-gnu/4.5.4/libgcc. A when searching for-lgcc/usr/bin/ld: cannot find-lgcc

Because the 64-bit system only contains 64-bit library files and does not contain 32-bit library files, but the target system is 32-bit, an error is returned.

The solution is to copy data on a colleague's machine.

1./usr/lib/GCC/x86_64-linux-gnu/4.5.4/32

2./usr/lig32

Two directories are stored on my machine, and the problem is solved.

During copying, note that the directory may fail to be copied when there is a linked file. In this case, you can package the Directory and copy it again. For example:

Tar-CVF lib32.tar.gz lib32

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.