error.c 썸네일형 리스트형 실행파일 만들기 : Make a .exe file for APUE APUE 의 모든 소스 코드들은 우선 error.h 가 컴파일 된 상태에서 링크를 통해 만들어져야 한다. 직접적인 예제를 보여주면 gcc -c error.c //error.o가 만들어짐 gcc -c myWC.c //myWC.o가 만들어짐 gcc -o a.out error.o myWC.o //실행파일을 a.out으로, error.o와 myWC.o를 링크시킨다. a.out //실행. 더보기 error.c Advanced Programming in the UNIX Environment 의 기본적인 error처리 library. 컴파일 해서 Object파일을 만든 후, 실제 실행파일 컴파일 시 링크시켜 줄 것. #include /* for definition of errno */ #include /* ANSI C header file */ #include "ourhdr.h" static void err_doit(int, const char *, va_list); char *pname = NULL; /* caller can set this from argv[0] */ /* Nonfatal error related to a system call. * Print a message and return. */ voi.. 더보기 이전 1 다음