getting an error when trying to compile the tetris clone

Started by
1 comment, last by cchase88 18 years, 1 month ago
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
Advertisement
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
hahahaahha thanks dude... I was doing it last night like at 2 AM... and didnt even add the function declaration

This topic is closed to new replies.

Advertisement