Static Loading of a dynamic library in linux

Source: Internet
Author: User
Problems with static loading of a dynamic library in linux-Linux general technology-Linux programming and kernel information. The following is a detailed description. I recently encountered a problem in my work. Although the problem has been solved, I still don't quite understand the specific cause and why.

Program structure: There are two dynamic libraries A. so and B. so, and A. so is statically loaded with B. so. At the same time, A and B have the same class C at the same time. (for the sake of clarity below, the AC class and BC class are actually A class.) The BC class adds the function fun1, the same functions as AC and BC are fun. B has a C instance objectBC. Fun and fun1 content:
QUOTE:

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.