Sign in to follow this  

Unexpected class?

This topic is 4868 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
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

This topic is 4868 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.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this