라이브러리 (ws2_32)와 헤더 파일 (ws2tcpip.h)을 가지고 있지만 어떤 이유로 라이브러리에 헤더에없는 함수가 있습니다. 메서드 서명을 결정할 수있는 방법이있어서 머리글에 직접 포함 할 수 있습니까?정적 라이브러리에서 헤더를 만들 수 있습니까?
[email protected] ~$ strings /usr/lib/w32api/libws2_32.a | grep -i 'inet_*ntop'
[email protected]
[email protected]
[email protected]
[email protected]
inet_ntop <<< I need this one
[email protected]
[email protected]
InetNtopW <<< or this one
[email protected]
[email protected]
[email protected] ~$ grep -i -B 4 -A 2 -R "ntop" /usr/include/w32api/ws2tcpip.h
[email protected] ~$
링커가이를 확인해야하므로 가능해야합니까?
은 참조 : InetNtop and ws2tcpip.h under GCC/Cygwin는
C 함수의 경우 링커는 일반적으로 함수 이름이 동일한 유형인지 또는 호출 규칙인지를 검사하는 것만 검사합니다. 일부 시스템에서는 링커가 호출하는 함수가 함수인지 여부를 확인하지도 않으며, 데이터 덩어리 일 수도 있습니다. –