Jump to content
  • Advertisement
Sign in to follow this  
cchase88

getting an error when trying to compile the tetris clone

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

Share this post


Link to post
Share on other sites
hahahaahha thanks dude... I was doing it last night like at 2 AM... and didnt even add the function declaration

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!