C + + Abi Akzent is evil

Source: Internet
Author: User

It is true that some companies expressly prohibit the use of STL also has a certain reason. In fact, the essence of this problem is that most developers are stupid, not the level of control of these details, project release in case of a problem? To throw a slot for this, when I link a library, the link fails due to inconsistencies in the compilation parameters and the link parameters. That library is the C + + interface.

The current C + + where can be compared with C Abi Ah, it is impossible!!!! Because of the complexity of C + +, it is difficult to deal with the chaos of the binary boundary. Therefore, in particular, C + + templates introduce more complex, if the library's caller set the compilation parameters and the called Library's own compilation parameters are inconsistent, then it is likely that the code is not the same ABI layout. Then the link failed.

Actually, this is a trade-off (trade-off) problem.

C + + Abi Akzent is evil

Related Article

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.