On Thu, 13 May 2010 09:58:02 +0200 (CEST), Jan Engelhardt <jengelh@xxxxxxxxxx> wrote: > On Wednesday 2010-05-12 23:16, Zerouali Mehdi wrote: >> >>I am using this mailing list as the last chance to get a solution to my >>problem. I hope my simple question is not going to bother you too much. >> >>I am trying to compile and run the simpliest program that uses libipq, the >>man example program. >> >>When I try to compile it, I get the following error code: >> >>In file included from example.c:2: >>/usr/include/linux/netfilter.h:55: error: field ‘in’ has incomplete type >>/usr/include/linux/netfilter.h:56: error: field ‘in6’has incomplete type >> >>It looks like there is a problem with the netfilter header, that is not >>able to load the in.h and in6.h librairies. > > in and in6 are not libraries, they are struct members, and you > need #include <netinet/in.h> to get at their definition beforehand. Thank you for your answer, this actually fixes my problem, I am now able to compile the program successfuly ! Cheers ^^ ! > -- > To unsubscribe from this list: send the line "unsubscribe netfilter-devel" > in > the body of a message to majordomo@xxxxxxxxxxxxxxx > More majordomo info at http://vger.kernel.org/majordomo-info.html -- Mehdi Zerouali INSA Lyon Student KTH Stockholm Student -- To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html