Configure the apue2 environment in Ubuntu12.04. 0. For ease of operation, we recommend that you use the root permission. 1. Download the source code package and decompress it to a directory, such as/root/apue.2e. --------------------------------------------------------------- The user name and password are both www.lin at http://linux.linuxidc.com/
Configure the apue2 environment in Ubuntu 12.04.
0. For ease of operation, we recommend that you use the root permission.
1. Download the source code package and decompress it to a directory, such as/root/apue.2e.
-------------------------------------------------------------
Free in http://linux.linuxidc.com/
The username and password are both www.linuxidc.com
The specific download directory is available in/July 6, 12.04,/July 8,/Ubuntu to configure the apue2 environment.
-------------------------------------------------------------
2. In/root/apue.2e/Make. defines. linux, change WKDIR =/home/sar/apue.2e to/root/apue.2e.
3. Change status in row 122nd of/root/apue.2e/ipp. h to Status. (It can also be changed to another one, but it must correspond to the following)
4. Replace status in line 977th of/root/apue.2e/ipp/printd. h with Status. (Corresponding to the above)
5. Add row 1st in/root/apue.2e/threadctl/getenv1.c and/root/apue.2e/threadctl/getenv3.c # include Replace with # include .
6. If the file is compiled successfully, the libapue. a static link library file is generated in the/root/apue.2e/lib/directory.
7. Copy/root/apue.2e/lib/libapue. a to the/usr/local/lib/directory.
8. Copy/root/apue.2e/include/apue. h to the/usr/local/include/directory.
9. Compilation example: gcc main. c-lapue.
OVER!