Sign in to follow this  

getting an error when trying to compile the tetris clone

This topic is 4306 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 tried posting in the tutorial thread, but it kept returning me to the main forum page. Anyways, Im trying to compile the tetris clone http://www.gamedev.net/community/forums/topic.asp?topic_id=192483 I got everything working, except for the DrawMap() function. Here is the error I am getting: main.cpp(311) : error C2065: 'DrawMap' : undeclared identifier main.cpp(355) : error C2373: 'DrawMap' : redefinition; different type modifiers I've gone through the code several times, but cant seem to figure out what I'm doing wrong. Thanks for any feedback

Share this post


Link to post
Share on other sites
I'm guessing whichever function calls DrawMap comes in the code before the function DrawMap. You need to either put a declaration of DrawMap at the top of the file, or move that function that calls it below DrawMap in the source code.

Vovan

Share this post


Link to post
Share on other sites

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