Re: [ns] Error C++ forbids declaration

2009-02-18 Thread Diana Benitez


Thanks a lot Fernando. 

 

I check and it felt a simple } in my code.

 

Thanks,

 

DIANA.
 
 Date: Wed, 18 Feb 2009 05:23:07 +
 From: fro...@student.dei.uc.pt
 To: paraguayita...@hotmail.com
 CC: ns-users@ISI.EDU
 Subject: Re: [ns] Error C++ forbids declaration
 
 Hi Diana.
 
 Have you made some changes in NS source code?
 
 That might occur when you forgot to include the proper header file for 
 the class_wdhdr class or when you have circular references in C++ 
 header files (.h). For instance, when you have a header class like 
 game.h including the header class player.h, and the player.h 
 including the game.h header class, or includes any class that includes 
 the game.h header class.
 
 It might occur too when you have an assignment outside of a function, or 
 you forgot a simple ; at the end of the line.
 
 It might be one of those cases, or another one more complex. That is why 
 it is important to know if you made changes in the NS source code.
 
 
 Best regards,
 Fernando Rocha
 
 Diana Benitez wrote:
  
  Hi everyone:
  
  
  
  When I compile I get the following error:
  
  
  
  ISO C++ forbids declaration of 'class_wdhdr' with no type
  
  
  
  Did someone know how to solve this error?
  
  'class_wdhdr' is a new header I am trying to create.
  
  
  
  Thanks
  
  
  
  DIANA.
  
  _
  Get more out of the Web. Learn 10 hidden secrets of Windows Live.
  http://windowslive.com/connect/post/jamiethomson.spaces.live.com-Blog-cns!550F681DAD532637!5295.entry?ocid=TXT_TAGLM_WL_domore_092008
  
 

_
Stay up to date on your PC, the Web, and your mobile phone with Windows Live.
http://clk.atdmt.com/MRT/go/msnnkwxp1020093185mrt/direct/01/


[ns] Error C++ forbids declaration

2009-02-17 Thread Diana Benitez


Hi everyone:

 

When I compile I get the following error:

 

  ISO C++ forbids declaration of 'class_wdhdr' with no type

 

Did someone know how to solve this error?

'class_wdhdr'  is a new header I am trying to create.

 

Thanks

 

DIANA.

_
Get more out of the Web. Learn 10 hidden secrets of Windows Live.
http://windowslive.com/connect/post/jamiethomson.spaces.live.com-Blog-cns!550F681DAD532637!5295.entry?ocid=TXT_TAGLM_WL_domore_092008


Re: [ns] Error C++ forbids declaration

2009-02-17 Thread Fernando Rocha

Hi Diana.

Have you made some changes in NS source code?

That might occur when you forgot to include the proper header file for 
the class_wdhdr class or when you have circular references in C++ 
header files (.h). For instance, when you have a header class like 
game.h including the header class player.h, and the player.h 
including the game.h header class, or includes any class that includes 
the game.h header class.

It might occur too when you have an assignment outside of a function, or 
you forgot a simple ; at the end of the line.

It might be one of those cases, or another one more complex. That is why 
it is important to know if you made changes in the NS source code.


Best regards,
Fernando Rocha

Diana Benitez wrote:
 
 Hi everyone:
 
  
 
 When I compile I get the following error:
 
  
 
   ISO C++ forbids declaration of 'class_wdhdr' with no type
 
  
 
 Did someone know how to solve this error?
 
 'class_wdhdr'  is a new header I am trying to create.
 
  
 
 Thanks
 
  
 
 DIANA.
 
 _
 Get more out of the Web. Learn 10 hidden secrets of Windows Live.
 http://windowslive.com/connect/post/jamiethomson.spaces.live.com-Blog-cns!550F681DAD532637!5295.entry?ocid=TXT_TAGLM_WL_domore_092008