[ns] Error "C++ forbids declaration"

Fernando Rocha frocha at student.dei.uc.pt
Tue Feb 17 21:23:07 PST 2009


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
> 



More information about the Ns-users mailing list