따로 라이브러리를 지정해서 링크해야 하는 함수의 경우 man page에 옵션이 명시되어 있습니다.
예를 들면 이렇게요...
Network Functions socket(3N)
NAME
socket - create an endpoint for communication
SYNOPSIS
cc [ flag ... ] file ... -lsocket -lnsl [ library ... ]
#include <sys/types.h>
#include <sys/socket.h>
int socket(int domain, int type, int protocol);
Re: 라이브러리 링크할때 어떤함수가 어떤라이브러리에 있는지
따로 라이브러리를 지정해서 링크해야 하는 함수의 경우 man page에 옵션이 명시되어 있습니다.
예를 들면 이렇게요...
KISS...
Keep It Small and Simple
아주 노가다 적인 방법으로... 8) nm 과 grep, shel
아주 노가다 적인 방법으로... 8)
nm 과 grep, shell script를 조합하여 해당 심볼이 들어있는 library를 검색하는건 어떨까요..흐흐
[quote="ddoman"]아주 노가다 적인 방법으로... 8)
정답이죠.. 전 항상 이 방법을 사용합니다. -.-
---
http://coolengineer.com
저도 그렇습니다. :oops:
저도 그렇습니다. :oops:
C FAQ: http://www.eskimo.com/~scs/C-faq/top.html
Korean Ver: http://cinsk.github.io/cfaqs/
댓글 달기