Troubleshooting UNIX Environment Advanced becomes apue.h problem not found

Source: Internet
Author: User

Transferred from: http://www.xitongbuluo.com/jiaocheng/17264.html

Download apue.h file in http://download.csdn.net/detail/lincoln_2012/7680675

/************************************************************************************************************** /

The apue.h file is a file that is written in the book and contains the usual header files that the system does not own. This includes the usual header files, and the definition of the error handling function, which is very convenient to use. However, in actual use does not have this file to do? What to do?

1. Download to the book the corresponding apue.h and error.c two files on the Internet;

2. Switch to the root user (the normal user does not have enough permission to copy files to/usr directory);

3. Modify the Apue.h file we need to save the file in the Apue.h file #endif/* _apue_h * * Before adding # include "ERROR.C"!

4. Copy the two files to the/usr/include directory;

In accordance with the inside can't fight or met a small dozen problems, compile the error prompt said error.c maxline No definition, I in error.c inside define

#define MAXLINE 2048

You can go through the compilation of files with GCC.

Troubleshooting UNIX Environment Advanced becomes apue.h problem not found

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.