Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8321737
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T23:07:39+00:00 2026-06-08T23:07:39+00:00

Have simple , empty project without any code. just includes. The include linux/netfilter.h cause

  • 0

Have simple , empty project without any code. just includes.
The include linux/netfilter.h cause to compilation error:

In file included from ../src/main.cpp:2:0:
/usr/include/linux/netfilter.h:65:17: error: field ‘in’ has incomplete type
/usr/include/linux/netfilter.h:66:18: error: field ‘in6’ has incomplete type

As you can see in the simple project i have 2 includes if i remove the iostream include i will get additional error – ‘/usr/include/linux/sysctl.h:40:2: error: ‘size_t’ does not name a type’

#include <iostream>
#include <linux/netfilter.h>

int main() {
}

if i add include of netinet/in.h before netfilter.h than no errors.

why my simple main program cannot has these compilation errors?

Thank you

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T23:07:42+00:00Added an answer on June 8, 2026 at 11:07 pm
    union nf_inet_addr {
        __u32       all[4];
        __be32      ip;
        __be32      ip6[4];
        struct in_addr  in;
        struct in6_addr in6;
    };
    

    struct in_addr and in6_addr are not complete types. so, you should include header with declaration of structures before netfilter.h

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a simple question. When I open VC++, create an Empty Project, insert
I have created a simple Xcode 4.2 project with a empty view controller. I
I have a simple WAR project managed by Maven. I have the servlet code
I have a simple UserControl containing a ComboBox which is empty at first. The
Possible Duplicate: Check if a variable is empty Simple PHP question: I have this
I have created windows service project in vs2008. I have created simple serivce project
I have grails server on http://mysite.com:8086/project/ ApiController renders some text(html code in my case)
I have a very simple MDX query. SELECT NON EMPTY {[Measures].[ing_pc_hh_presupuestadas], horas,[Measures].[ing_pc_hh_faltantes],[Measures].[ing_pc_faltante] } ON
I'm using Eclipse, and I have a pretty simple project, I'll save you the
I have absolutely empty Android project generated with mvn archetype:generate -DarchetypeArtifactId=android-quickstart ....... It builds

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.