![]() |
cant include libipq.h header file
I have a C file of the following .When I execute this in Fedora 7 version 2.6.21-1.3194.fc7 and
arch =i686 I get following errors [root@kwi-11156f06184 Desktop]# cc test.c test.c:3:20: error: libipq.h: No such file or directory test.c: In function ‘main’: test.c:12: error: ‘PF_INET’ undeclared (first use in this function) test.c:12: error: (Each undeclared identifier is reported only once test.c:12: error: for each function it appears in.) test.c:12: warning: assignment makes pointer from integer without a cast [root@kwi-11156f06184 Desktop]# cc test.c -libipq.h test.c:3:20: error: libipq.h: No such file or directory test.c: In function ‘main’: test.c:12: error: ‘PF_INET’ undeclared (first use in this function) test.c:12: error: (Each undeclared identifier is reported only once test.c:12: error: for each function it appears in.) test.c:12: warning: assignment makes pointer from integer without a cast [root@kwi-11156f06184 Desktop]# cc test.c -libipq test.c:3:20: error: libipq.h: No such file or directory test.c: In function ‘main’: test.c:12: error: ‘PF_INET’ undeclared (first use in this function) test.c:12: error: (Each undeclared identifier is reported only once test.c:12: error: for each function it appears in.) test.c:12: warning: assignment makes pointer from integer without a cast [root@kwi-11156f06184 Desktop]# cc -libipq test.c test.c:3:20: error: libipq.h: No such file or directory test.c: In function ‘main’: test.c:12: error: ‘PF_INET’ undeclared (first use in this function) test.c:12: error: (Each undeclared identifier is reported only once test.c:12: error: for each function it appears in.) test.c:12: warning: assignment makes pointer from integer without a cast Code:
any hints and suggestions prethanks to helper |
| All times are GMT +5.5. The time now is 11:46. |