Okay, so I have followed Lazyfoo's first SDL tutorial, but an error was encountered. The code is below:
1 2 3 4 5 6 7 8 9 10 11 12 13 14
|
#include <cstdlib>
#include <SDL.h>
int main(){
SDL_Init( SDL_INIT_EVERYTHING );
SDL_Surface* Heron = SDL_LoadBMP("Ubuntu_Hardy_Heron_Edit.bmp");
SDL_Surface* Screen = SDL_SetVideoMode(960,600,32,SDL_SWSURFACE);
SDL_BlitSurface(Heron,NULL,Screen,NULL);
SDL_Flip(Screen);
SDL_Delay(5000);
SDL_FreeSurface(Heron);
SDL_Quit();
return 0;
}
|
The error is (it compiles and runs fine (Edit: it does not run - my error for putting this), but displays this in the box containing the build log shows the following message):
--------------- Build: Debug in Test1 ---------------
Linking console executable: bin\debug\Test1
/bin/sh: 1: Syntax error: Unterminated quoted string
Process terminated with status 2 (0 minutes, 0 seconds)
0 errors, 0 warnings
Also after checking the debug folder, I found that there was no executable and every time that I try to build and run, it claims that the project has not been built yet and asks "It seems that this project has not been built yet.
Do you want to build it now?"
There is nothing on the site for Code::Blocks on Linux, does anyone else know what it is (and would this be enough information)? Thank you all!