Ubuntu on contact with UNIX environment advanced programming-apue.h Configuration and Installation __ programming

Source: Internet
Author: User

UNIX Environment Advanced Programming environment configuration


1. Download Apue.tar.gz Package


TAR-ZXVF apue.tar.gz


cdapue.3e


Make


If error: Can,tfind-lbsd


Solution:

Sudoapt-get Install Libbsd-dev



2. Then re-make (again)


3. On the basis of successful compilation, install Apue.h file and its corresponding static link library


SUDOCP./include/apue.h/usr/include/


SUDOCP./lib/libapue.a/usr/local/lib/


Brief explanation:

Why move the Libapue.a to the/usr/local/lib? The reason is that libapue.a is a static link library that contains all the functions and macro definitions that are contained in the Apue.h header file.

View ld.conf.d/libc.conf you'll find that GCC searches the link library by default to search for files in/usr/local/lib/, so we put it here, once and for all.

Then use GCC to compile ...

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.