[ns] Error "C++ forbids declaration"
Diana Benitez
paraguayita_69 at hotmail.com
Wed Feb 18 06:44:36 PST 2009
Thanks a lot Fernando.
I check and it felt a simple "}" in my code.
Thanks,
DIANA.
> Date: Wed, 18 Feb 2009 05:23:07 +0000
> From: frocha at student.dei.uc.pt
> To: paraguayita_69 at hotmail.com
> CC: ns-users at 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/
More information about the Ns-users
mailing list