Thread: Cannot declare a member properly in structure

  1. #1
    Registered User
    Join Date
    Mar 2012
    Posts
    3

    Cannot declare a member properly in structure

    Respected members of this forum , I am attching text file named iaodv.txt, in this file i had tried to declare rq_sec, please correct me if i am wrong, just search with "shyju", i had commented all my declaration for better reading
    I am getting following error while running this .c file

    iaodv/iaodv.cc: In member function ‘void IAODV::recvRequest(Packet*)’:
    iaodv/iaodv.cc:715:13: error: ‘struct hdr_iaodv_request’ has no member named ‘rq_sec’
    iaodv/iaodv.cc:768:32: error: ‘struct hdr_iaodv_request’ has no member named ‘rq_sec’
    iaodv/iaodv.cc:771:30: error: ‘struct hdr_iaodv_request’ has no member named ‘rq_sec’
    iaodv/iaodv.cc: In member function ‘void IAODV::forward(iaodv_rt_entry*, Packet*, double)’:





    thanks a lot in advance
    Attached Files Attached Files

  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
    You need to look in whichever header file defines that structure.

    Typically,
    - you spelled the name wrong
    - it doesn't exist at all
    - the field in question is in some #if VAR ... #endif block
    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. Replies: 2
    Last Post: 03-08-2011, 02:16 AM
  2. How to declare const data member in class
    By chottachatri in forum C++ Programming
    Replies: 3
    Last Post: 05-05-2008, 04:54 AM
  3. member functions not working properly
    By bulletbutter in forum C++ Programming
    Replies: 18
    Last Post: 04-22-2008, 11:27 AM
  4. Structure in header won't declare.
    By CornJer in forum C++ Programming
    Replies: 13
    Last Post: 10-22-2006, 01:30 AM
  5. Pointer member not being recognised properly
    By drrngrvy in forum C++ Programming
    Replies: 9
    Last Post: 10-02-2006, 02:15 PM