Sign in to follow this  
cchase88

getting an error when trying to compile the tetris clone

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

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