[RESOLVED] error C2143: syntax error : missing ';' before '*'
Hey guys, I was trying to write a character controller but when I went to add my pointer to my character I get error C2143: syntax error : missing ';' before '*'
I've looked at all my classes involved but I don't see any errors and Visual Studio doesn't report any other specific errors. Is there any way of finding the source of this type of error?
Last edited by drwbns; October 3rd, 2012 at 08:33 AM.
Re: error C2143: syntax error : missing ';' before '*'
Yes there is....post the offending line of code....and several before and after so we can help you fix your problem...
Jim
ATP BE400 CE500 (C550B-SPW) CE560XL MU300 CFI CFII
"The speed of non working code is irrelevant"... Of course that is just my opinion, I could be wrong.
"Nothing in the world can take the place of persistence. Talent will not; nothing is more common than unsuccessful men with talent. Genius will not; unrewarded genius is almost a proverb. Education will not; the world is full of educated derelicts. Persistence and determination are omnipotent. The slogan 'press on' has solved and always will solve the problems of the human race."...Calvin Coolidge 30th President of the USA.
Re: error C2143: syntax error : missing ';' before '*'
Originally Posted by drwbns
Why dont my code tags work?
After 121 posts, you don't realize that code tags use square brackets?
Offending line is CharacterOgre * mChar;
So how can you use a type that the compiler doesn't know anything about? What is a "CharacterOgre"? I don't see that definition anywhere, and neither does the compiler.
When you post code that doesn't compile, you should post all the code that you're trying to compile. If I took what you posted, I would get a boatload of other errors.
Bookmarks