   dev c++ compiler error
  C:\Dev-Cpp\projects\Makefile.win [Build Error]  [main.o] Error 1 This is the only error I've been getting I'm just trying to create a basic allegro program with this code. As far as I am aware of this code is correct.#include <allegro.h>int main(){allegro_init();    install_keyboard();    set_gfx_mode( GFX_AUTODETECT, 640, 480, 0, 0);   readkey();   return 0;    }   END_OF_MAIN(); Please help if you know a possible resolution.Thanks in advance.   
  Are you adding END_OF_MAIN(); to your code? if so then are you sure you don't want that line to be commented out?#include <allegro.h>int main(){allegro_init();install_keyboard();set_gfx_mode( GFX_AUTODETECT, 640, 480, 0, 0);readkey();return 0;}//END_OF_MAIN();Also, do you have the allegro library and header files setup and included with your project?   ;  Thanks, but that didn't work either. I'm gonna take a look at the makefile.win since it keeps saying the error originated there.just in case someone will need it here's the compiler log.Compiler: Default compilerBuilding Makefile: "C:\Dev-Cpp\projects\Makefile.win"Executing  make...make.exe -f "C:\Dev-Cpp\projects\Makefile.win" allg++.exe -D__DEBUG__ -c main.cpp -o main.o -I"C:/Dev-Cpp/lib/gcc/mingw32/3.4.2/include"  -I"C:/Dev-Cpp/include/c++/3.4.2/backward"  -I"C:/Dev-Cpp/include/c++/3.4.2/mingw32"  -I"C:/Dev-Cpp/include/c++/3.4.2"  -I"C:/Dev-Cpp/include"    -g3'C:\Users\MARY' is not recognized as an internal or external command,operable program or batch file.The system cannot find the path specified.make.exe: *** [main.o] Error 1Execution terminatedno clue what that means personally i'm just assuming it has something to do with an incorrect path somewhere.   ;  I know what the problem is. First of all, do not comment out END_OF_MAIN, but there is something you need to change in main. Allegro uses the Main() parameters so your code should look like this: #include <allegro.h>int main(int argc, char *argv[]) { //This is the only difference allegro_init();install_keyboard();set_gfx_mode( GFX_AUTODETECT, 640, 480, 0, 0);readkey();return 0;} END_OF_MAIN(); As you can see, I added "int argc, char *argv[]" as parameters to main, they must be used with Allegro. ;  Looking at the error, it isn't a compile error. Maybe recreate the project?Dev-Cpp is out dated you should(if you can) check out Visual Studio Express Editions.   ;Quote:Original post by cNoobLooking at the error, it isn't a compile error. Maybe recreate the project?Dev-Cpp is out dated you should(if you can) check out Visual Studio Express Editions.Either that, or Code::Blocks. But Visual Studio is probably easier to get started with.;  thanks, it still didn't work but i'll try it on visual express 2008 i've got it waiting to be installed. as for dev c++ i guess i made a wrong decision oh well i've got to start from somewhere. thanks anyway i'll just go back to express.   ;  The log suggests that make or g++ try to execute something in the "c:\Users\Mary" folder. Is it "c:\Users\Mary something" and you did not put it inside appropriate double quotes to allow for a space in the pathname? What do you have in that folder? Seeing the makefile and environment variables would be helpful.   