Sylixos x86 platform C + + symbol table

Source: Internet
Author: User
1.c++ Cross-platform problem description
After compiling the C + + engineering process under the x86 platform, there is a problem with the symbol table __atomic_fetch_sub_4 not found when running the compiled C + + shared library, as shown in 1.1.

             图 1.1 符号表缺失

2. Problem solving
The reason why the symbol table is missing is because the platform compilation option is added to the cross-platform compilation, and the-march=i686 option is added under the x86 platform, as shown in 2.1.

       图 2.1 增加Makefile编译选项编译上传后,再运行动态库,发现动态库没有出现符号表未定义的问题, 2.2所示。

      图 2.2 动态库正常运行

Sylixos x86 platform C + + symbol table

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.