Thread: expected specifier-qualifier-list ip.h

  1. #1
    Registered User
    Join Date
    Jan 2009
    Posts
    77

    expected specifier-qualifier-list ip.h

    Hi all, I've got this error...
    In file included from t.c:10:
    ip.h:148: error: expected specifier-qualifier-list before 'n_time'
    Below I posted scrap of code where it's defined.
    Code:
    147:    union ipt_timestamp {
    148:             n_time ipt_time[1];
    149:             struct ipt_ta {
    150:                    struct in_addr ipt_addr;
    151:                    n_time ipt_time;
    152:             } ipt_ta[1] __attribute__((__packed__));
    153:    } ipt_timestamp __attribute__((__packed__));
    154:} __attribute__((__packed__));
    I tried fixit like this, but take nothing positive effect.
    Code:
    typedef unsigned int n_time;
    typedef u_int32_t n_time;
    Tell me something how to improve it stiff.

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    Do you include say inet.h before ip.h ?
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Problem with Visual C++ Object-Oriented Programming Book.
    By GameGenie in forum C++ Programming
    Replies: 9
    Last Post: 08-29-2005, 11:21 PM
  2. Windows using Dev-C++
    By Renegade in forum C++ Programming
    Replies: 15
    Last Post: 07-07-2005, 08:29 PM
  3. Contest Results - May 27, 2002
    By ygfperson in forum A Brief History of Cprogramming.com
    Replies: 18
    Last Post: 06-18-2002, 01:27 PM
  4. singly linked list
    By clarinetster in forum C Programming
    Replies: 2
    Last Post: 08-26-2001, 10:21 PM