Thanks very much for the prompt and helpful reply.
I downloaded the DevPack which I was previously using with DevC++ and then clicked onto Tools --> DevPacks and configured it appropriately - I hope (the directory being C:\DevCpp\Packages). The Allegro DevPack didn't show up though. I assume that I am doing something seriously wrong but not sure what?
Thanks again,
Matt. I
EDIT: UPDATE
I now have Allegro installed - that was me being noobish and not realising that you had to right-click the package and click download and install but with the following code:
#include <allegro.h>
int main(){
allegro_init();
install_keyboard();
set_gfx_mode( GFX_AUTODETECT, 640, 480, 0, 0);
readkey();
return 0;
}
END_OF_MAIN();
The compiler returns an error on practically every line. I'm not sure what I'm doing wrong. It's not coding because this is virtually the same as the Allegro tutorial that I'm following so I assume it has to be something that I'm doing wrong with the compiler. Thanks!
Hi,
Thanks very much for going to all that effort! I've done all that but get the following in the log:
-------------- Build: Debug in AllegroTest1 ---------------
Linking console executable: bin\Debug\AllegroTest1.exe
mingw32-g++.exe: e.t.c\allegro-mingw-4.2.2\allegro-mingw-4.2.2 -LC:\Dev-Cpp\Packages\lib -o bin\Debug\AllegroTest1.exe obj\Debug\main.o C:\Documents: Invalid argument
mingw32-g++.exe: and: No such file or directory
mingw32-g++.exe: Settings\Matt: No such file or directory
mingw32-g++.exe: Ireland\My: No such file or directory
mingw32-g++.exe: Documents\Programming\C++\Libraries: No such file or directory
mingw32-g++.exe: e.t.c\allegro-mingw-4.2.2\allegro-mingw-4.2.2\lib\libaldat.a C:\Documents: Invalid argument
mingw32-g++.exe: and: No such file or directory
mingw32-g++.exe: Settings\Matt: No such file or directory
mingw32-g++.exe: Ireland\My: No such file or directory
mingw32-g++.exe: Documents\Programming\C++\Libraries: No such file or directory
mingw32-g++.exe: e.t.c\allegro-mingw-4.2.2\allegro-mingw-4.2.2\lib\liballd.a C:\Documents: Invalid argument
mingw32-g++.exe: and: No such file or directory
mingw32-g++.exe: Settings\Matt: No such file or directory
mingw32-g++.exe: Ireland\My: No such file or directory
mingw32-g++.exe: Documents\Programming\C++\Libraries: No such file or directory
mingw32-g++.exe: e.t.c\allegro-mingw-4.2.2\allegro-mingw-4.2.2\lib\liballd_s.a C:\Documents: Invalid argument
mingw32-g++.exe: and: No such file or directory
mingw32-g++.exe: Settings\Matt: No such file or directory
mingw32-g++.exe: Ireland\My: No such file or directory
mingw32-g++.exe: Documents\Programming\C++\Libraries: No such file or directory
mingw32-g++.exe: e.t.c\allegro-mingw-4.2.2\allegro-mingw-4.2.2\lib\liballeg.a C:\Documents: Invalid argument
mingw32-g++.exe: and: No such file or directory
mingw32-g++.exe: Settings\Matt: No such file or directory
mingw32-g++.exe: Ireland\My: No such file or directory
mingw32-g++.exe: Documents\Programming\C++\Libraries: No such file or directory
mingw32-g++.exe: e.t.c\allegro-mingw-4.2.2\allegro-mingw-4.2.2\lib\liballeg_s.a C:\Documents: Invalid argument
mingw32-g++.exe: and: No such file or directory
mingw32-g++.exe: Settings\Matt: No such file or directory
mingw32-g++.exe: Ireland\My: No such file or directory
mingw32-g++.exe: Documents\Programming\C++\Libraries: No such file or directory
mingw32-g++.exe: e.t.c\allegro-mingw-4.2.2\allegro-mingw-4.2.2\lib\liballp.a C:\Documents: Invalid argument
mingw32-g++.exe: and: No such file or directory
mingw32-g++.exe: Settings\Matt: No such file or directory
mingw32-g++.exe: Ireland\My: No such file or directory
mingw32-g++.exe: Documents\Programming\C++\Libraries: No such file or directory
mingw32-g++.exe: e.t.c\allegro-mingw-4.2.2\allegro-mingw-4.2.2\lib\liballp_s.a: No such file or directory
mingw32-g++.exe: no input files
Process terminated with status 1 (0 minutes, 0 seconds)
0 errors, 0 warnings
It says 0 errors, 0 warnings so I don't understand why it won't run? There's nothing in the debug folder either.