Advertisement

VSC++ to DevC++:Problems

Started by January 21, 2002 08:07 PM
0 comments, last by Tszafran 22 years, 9 months ago
Hi, I have been compiling and using Visual C++ for this game project I am working on, but now I must convert to Dev C++. My source code compiled perfectly fine under VSC++ with no errors or warnings but under DevC++ I get these errors and cannot seem to fix it so it will compile. Here are the errors. Line 8 SDL_Functions.h from c:\snake final project\main.cpp:5: and it points to #include "AI_functions.h" int XTile=0;int YTile=0; Line 13 AI_Functions.h ANSI C++ forbids declaration ''MoveUnit'' with no type and it points to public: MoveUnit(char Direction); Any help?
MSN Messenger: Thomas_Szafran@hotmail.com
Well, I think the second one would be because your not declaring a return type for MoveUnit, maybe try

void MoveUnit(char Direction)

-lao

This topic is closed to new replies.

Advertisement