ip_icmp.h 질문입니다
글쓴이: wed212 / 작성시간: 화, 2015/12/01 - 10:40오후
socket 프로그래밍을 하는 도중 첨부한 그림과 같이 icmp에 대한 에러가 발생합니다
n_time은 netinet/in_systm.h 에 정의되어있어서 c파일에 헤더를 추가하였는데도 해결이 되지않습니다.
어떻게 하면 에러를 없엘 수 있을까요???
File attachments:
첨부 | 파일 크기 |
---|---|
![]() | 73.65 KB |
Forums:
찾아봤습니다.
가장 가능성이 높은것은. 잘 실행 되는 예제소스를 구하는것 같습니다.
여기 예제소스는 ip_icmp.h 파일을 사용하고 있습니다.
해당 header 파일이나. 소스가 없어서. 안될 수 도 있습니다.
#include "" 와 #include <> 는 다릅니다.
참조하는 경로를 잘못 입력한 경우도 그럴 수 있습니다.
ICMP packets are not being sent C
http://stackoverflow.com/questions/9688899/icmp-packets-are-not-being-sent-c
각 컴파일 오류에 대한 정보를 검색해봤습니다. 참고해보세요.
---------------------------------
ip_icmp.h
http://search.naver.com/search.naver?ie=utf8&sm=stp_hty&where=se&query=ip_icmp.h
http://www.google.co.kr/search?q=ip_icmp.h&btnG=%EA%B2%80%EC%83%89&hl=ko&biw=&bih=&gbv=2
FreeBSD kernel IPv4 code
http://www.leidinger.net/FreeBSD/dox/netinet/html/dd/de8/ip__icmp_8h_source.html
error: field has incomplete type 'struct in_addr'
http://search.naver.com/search.naver?ie=utf8&sm=stp_hty&where=se&query=error%3A+field+has+incomplete+type+%27struct+in_addr%27
error: field has incomplete type 'struct in_addr'
http://www.google.co.kr/search?hl=ko&source=hp&biw=&bih=&q=error%3A+field+has+incomplete+type+%27struct+in_addr%27&gbv=2&oq=error%3A+field+has+incomplete+type+%27struct+in_addr%27&gs_l=heirloom-hp.12...986.986.0.1569.1.1.0.0.0.0.149.149.0j1.1.0....0...1ac.1.34.heirloom-hp..1.0.0._E3MileHGlc
---------------------------------
error: expected ';' at end of declaration list
---------------------------------
error: unknown type name 'n_time'
https://stackoverflow.com/questions/10213337/cuda-2-1-error-unknown-type-name-size-t
Make sure you #include
If this is a C++ program, try adding the line using namespace std.
--------------------------------------------
error: field has incomplete type 'struct ip'
http://search.naver.com/search.naver?sm=stb_hty&where=se&ie=utf8&query=error%3A+field+has+incomplete+type+%27struct+ip%27
http://www.google.co.kr/search?hl=ko&source=hp&biw=&bih=&q=error%3A+field+has+incomplete+type+%27struct+ip%27&gbv=2&oq=error%3A+field+has+incomplete+type+%27struct+ip%27&gs_l=heirloom-hp.12...176.176.0.658.1.1.0.0.0.0.108.108.0j1.1.0....0...1ac..34.heirloom-hp..1.0.0.to0E8cmEwOI
---------------------------------
네이버 책 검색 결과
http://book.naver.com/search/search.nhn?sm=sta_hty.book&sug=&where=nexearch&query=ip_icmp.h
----------------------------------------------------------------------------
젊음'은 모든것을 가능하게 만든다.
매일 1억명이 사용하는 프로그램을 함께 만들어보고 싶습니다.
정규 근로 시간을 지키는. 야근 없는 회사와 거래합니다.
각 분야별. 좋은 책'이나 사이트' 블로그' 링크 소개 받습니다. shintx@naver.com
댓글 달기