(Aix) LD: 0711-244 error: No csects or exported symbols have been saved

Source: Internet
Author: User

When you use the xlc compiler of the ibm aix system to compile a dynamic library, the following error occurs (the source file content compiled is blank ):

$ Touch t. CPP $ cat T. CPP $ xlc-c-o t. o t. CPP "T. CPP ", line 1.0: 1540-0809 (w) The source file is empty. $ xlc-qmkshrobj-O libt. so T. O ld: 0711-244 error: No csects or exported symbols have been saved.

The content of T. cpp in the preceding command is empty.

Solution: add the compilation parameter-bnoentry-brtl-berok.

$ Xlc-qmkshrobj-O libt. So T. O-bnoentry-brtl-berok

References:

Csdn: Problem of LD dynamic library in Aix

Chinaunix: Help: LD command cannot generate dynamic library

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.