Jump to content
  • Advertisement
Sign in to follow this  
The C modest god

Unexpected class?

This topic is 5083 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I have the following code: class RenderLightList: public ThreeDImageRender { public: RenderLightList (LightList & LList); RGBColor GetTriangleColor (Mesh3DCalcTriangle & Triangle, Point2D Pos); private: LightList * pLList; }; and get the following errors: error C2629: unexpected 'class RenderLightList (' e:\projects\engine\v0p01\threedimage.h(39) : error C2238: unexpected token(s) preceding ';' e:\projects\engine\v0p01\threedimage.h(43) : error C2143: syntax error : missing ';' before '*' e:\projects\engine\v0p01\threedimage.h(43) : error C2501: 'LightList' : missing storage-class or type specifiers e:\projects\engine\v0p01\threedimage.h(43) : error C2501: 'pLList' : missing storage-class or type specifiers FileFormats.CPP e:\projects\engine\v0p01\threedimage.h(39) : error C2629: unexpected 'class RenderLightList (' e:\projects\engine\v0p01\threedimage.h(39) : error C2238: unexpected token(s) preceding ';' e:\projects\engine\v0p01\threedimage.h(43) : error C2143: syntax error : missing ';' before '*' e:\projects\engine\v0p01\threedimage.h(43) : error C2501: 'LightList' : missing storage-class or type specifiers e:\projects\engine\v0p01\threedimage.h(43) : error C2501: 'pLList' : missing storage-class or type specifiers FileHandle.CPP e:\projects\engine\v0p01\threedimage.h(39) : error C2629: unexpected 'class RenderLightList (' e:\projects\engine\v0p01\threedimage.h(39) : error C2238: unexpected token(s) preceding ';' e:\projects\engine\v0p01\threedimage.h(43) : error C2143: syntax error : missing ';' before '*' e:\projects\engine\v0p01\threedimage.h(43) : error C2501: 'LightList' : missing storage-class or type specifiers e:\projects\engine\v0p01\threedimage.h(43) : error C2501: 'pLList' : missing storage-class or type specifiers

Share this post


Link to post
Share on other sites
Advertisement
Look at what is before "class RenderLightList.."

Maybe you forgot a ; at the end of a class.
If there's nothing, check at the end of the headers included in this file. You might be missing a ; there

edit: Well, can you tell us what was the error then?

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!