I
Ivan
Hi all,
i', tryng to make this code work .....
it compiles but , when i exec, i've got Segmentation Fault
Where i was wrong???
(i'm using Gcc)
my C code:
#include <SDL/SDL.h>
#include <SDL/SDL_image.h>
#include <stdio.h>
int main(void){
const SDL_VideoInfo *vInfo;
vInfo= SDL_GetVideoInfo ();
if ( vInfo->hw_available )
printf("HW: OK");
}
i', tryng to make this code work .....
it compiles but , when i exec, i've got Segmentation Fault
Where i was wrong???
(i'm using Gcc)
my C code:
#include <SDL/SDL.h>
#include <SDL/SDL_image.h>
#include <stdio.h>
int main(void){
const SDL_VideoInfo *vInfo;
vInfo= SDL_GetVideoInfo ();
if ( vInfo->hw_available )
printf("HW: OK");
}