Okay, I got OpenLayer working and am thus far impressed by the demo programs (I compiled them myself in the same project as this program, so know the linker is setup correctly now.) And decided to write a quick test program of my own using the new commands for practice and quickly ran into trouble. This is the code:
|8|| Setup::SetupScreen( 1024, 768, WINDOWED, 32 ); |
|11|| allegro_message("Failed to setup.");|
|16|| allegro_message("Failed to setup screen.");|
|19|| Bitmap myBmp( "Grass.bmp" );|
|21|| myBmp.Blit( 200,100);|
And this is the error I got: [EDIT]: It didn't actually return an error, just said that it failed, this is from the Compile Log.
Compiler: Default compiler
Building Makefile: "C:\Dev-Cpp\Makefile.win"
make.exe -f "C:\Dev-Cpp\Makefile.win" all
g++.exe -c "graphics test" -o "graphics test.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"
g++.exe: graphics test: linker input file unused because linking not done
g++.exe "graphics test.o" -o "Game3.exe" -L"C:/Dev-Cpp/lib" -mwindows -lopenlayer -lglyph -lfreetype -lloadpng -lpng -lz -lagl -lalleg -luser32 -lgdi32 -lglu32 -lopengl32
g++.exe: graphics test.o: No such file or directory
make.exe: *** [Game3.exe] Error 1
No doubt I've done something dumb again. Who can tell me what? =)
PS- Do I need to set up a double buffer in OpenLayer? It looks like the GfxRend::RefreshScreen() command takes care of that, but I could be wrong, and if so: how do I go about it. Again: thanks for your replies, everyone.