Review your favorite Linux distribution.
Go Back > Forums > Non-*NIX Forums > General
User Name
General This forum is for non-technical general discussion which can include both Linux and non-Linux topics. Have fun!


  Search this Thread
Old 05-25-2009, 08:33 PM   #1
LQ Newbie
Registered: Feb 2009
Posts: 0

Rep: Reputation: 0
Question ns2 problem: common/packet.h errors

Hi all,
i'm new in ns2.i installed ns2.29 and i was happy cause finally i success install it in windows next problem came when i try to run antnet program by Lavina Jain. i did exactly same like she told in her article but when i edit the makefile and i run 'make' in ns shell i've got these error:

In file included from common/
common/packet.h:264: error: expected unqualified-id before '=' token
common/packet.h:265: error: ISO C++ forbids declaration of `name_' with no type
common/packet.h:265: error: ISO C++ forbids initialization of member `name_'
common/packet.h:265: error: making `name_' static
common/packet.h:265: error: invalid in-class initialization of static data membe
r of non-integral type `int[60]'
common/packet.h: In constructor `p_info:_info()':
common/packet.h:176: error: `name_' undeclared (first use this function)
common/packet.h:176: error: (Each undeclared identifier is reported only once fo
r each function it appears in.)
common/packet.h:264: error: expected `]' before '}' token
common/packet.h:264: error: expected `;' before '}' token
common/packet.h: At global scope:
common/packet.h:267: error: new types may not be defined in a return type
common/packet.h:267: error: extraneous `char' ignored
common/packet.h:267: error: non-member function `const p_info* name(packet_t)' c
annot have `const' method qualifier
common/packet.h: In function `const p_info* name(packet_t)':
common/packet.h:268: error: `name_' undeclared (first use this function)
common/packet.h: At global scope:
common/packet.h:283: error: expected unqualified-id before "private"
common/packet.h:283: error: expected `,' or `;' before "private"
common/packet.h:285: error: expected declaration before '}' token
common/packet.h:271: warning: 'bool data_packet(packet_t)' defined but not used
In file included from common/
common/packet.h:37:1: unterminated #ifndef
make: *** [common/scheduler.o] Error 1

can anyone help me to fix this problem ??because i don't have any idea about.



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Common syslog errors in Linux JenniferOllie Linux - Newbie 7 03-29-2009 09:54 PM
Trying to do an apt-get upgrade errors on xfree86-common mkenyon2 Linux - Software 2 08-06-2008 02:21 PM
Receive packet errors, can not browse lot of sites erneZas Linux - Networking 4 12-04-2007 09:48 AM
D-link DWL-G520 packet loss errors on Gentoo 2005.0 Mr.Ampersand() Linux - Wireless Networking 0 11-19-2005 09:23 AM
RX packet errors iano Linux - Networking 0 11-15-2002 12:44 PM > Forums > Non-*NIX Forums > General

All times are GMT -5. The time now is 06:34 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration