Archived

This topic is now archived and is closed to further replies.

Silverbolter

Compile Error...

Recommended Posts

Hi all, I just wrong some code for my first game, a bomberman clone. Just as an exercise in programming and game development. I wrote the code in MSVC c++ 6.0 Introductory edition. Using basic C++ However every time I compile, I get this error in both my cpp files: error C2143: syntax error : missing '';'' before ''PCH creation point'' I have a BombermanMap class .cpp file which implements the map class for bomberman game, also a driver.cpp for implementing a test driver for testing the class. I''ve never seen this problem on unix/linux machines using gcc/g++. Here''s my include directives before my code: #include <string> #include <iostream> #include "BombermanMap.h" using namespace std; just your usual stuff?? Whats going on? Thanks!

Share this post


Link to post
Share on other sites
error C2143: syntax error : missing '';'' before ''PCH creation point''

This error could mean that you''ve forget to place the ; at the end of your classdeclaration..

if you have something like:

class CSomeClass
{
};

then don''t forget the last ; or you will get this error

Share this post


Link to post
Share on other sites