컴파일시 -D 옵션
기본적으로 Dubeg 문에 사용되며
"#ifdef apollo" 라고 선언하였으면
makefile에 "-Dapollo" 옵션을 주면 해당 함수 또는 작업을 할 수 있다.
<><><><><><><><><><><><><><><><><><><><><><><><><><><><>
CC 컴파일 옵션
-D : 소스 상에 ifdef ???을 활성화
-mt, -D_REENTRANT : 쓰레드 보호모드 컴파일
-lsocket, -lnsl : 링크 libsocket.so, libnsl.so (for using socket)
-lpthread : 링크 libpthread.so (for using pthread)
-lrt : 링크 librt.so (for using semaphore)
-->
댓글 없음:
댓글 쓰기