getting an error when trying to compile the tetris clone
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
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
Vovan
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement