Advanced Programming in the UNIX Environment Thrd Edition 의 예제를 compile 하려면 다음과 같이 하면 된다.
Source code download : https://github.com/vdpa4me/apue.git
/apue/apue.3e/lib 로 이동한다.
Makefile 을 editor 로 열어서, 아래 부분을 수정한다.
PLATFORM=$(shell $(ROOT)/systype.sh) 부분을 PLATFORM=linux 로 변경한다.
(systype.sh 실행시 permission denine error 발생)
make 명령어로 libapue.a 를 build 한다.
/apue/apue.3e/intro/myls.c 를 생성하고 코딩한다.
다음과 같이 build 한다.
gcc -I ../include/ myls.c -o myls -L ../lib/ -lapue
'Linux_system' 카테고리의 다른 글
Linux 가상 메모리의 응용 #1 - file map (0) | 2022.12.09 |
---|---|
Linux , caller (호출자) 가 누구인지 아는 방법 (0) | 2022.12.09 |
User ID/Group ID (0) | 2022.12.09 |
POSIX.1 이 뭐지? (0) | 2022.12.09 |
netplan 고정 IP 설정시, 서브넷 마스크 작성법 (0) | 2022.12.09 |