Hpunix How to generate a dynamic library?

Source: Internet
Author: User

How does the Hpunix system generate dynamic library compilation?

The compiler option to create a pic intermediate file is +z, which creates a dynamic Kurdish linker flag that is-B.

1. CC +z d1.c d2.c/* Compile intermediate destination files with ". O" for extension DL.O and DL2.O to compile multiple. c files at the same time.

2. Ld-b-o dl.so d1.o d2.o/* Create dynamic library D1.O from target file d2.o dl.so can have multiple destination files (. o files)

3. CC dl.so is the executable file that is generated, by default it is a.out

4. CC Dl.so-o add generates an add executable file.

Unlike most systems, Hp-unix defaults to using ". SL" As the extension of the dynamic library, and I tried it, and the current Hp-unix needs to specify the extension of the dynamic library.

Uname-a

Hpunix How to generate a dynamic library?

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.