SDL / SDL2 Library


#1

Hi,
I beginner in C, I am doing some internet trainings.
I would like use the graphic library SDL or SDL2, but they do not work with cloud9.

For SDL the error message is :
Running “/home/ubuntu/workspace/TestLibrary.c”
/home/ubuntu/workspace/TestLibrary.c:1:21: fatal error: SDL/SDL.h: No such file or directory
#include <SDL/SDL.h>

For SDL2 library, the #include <SDL2/SDL.h> is accept but all the SDL commands do not works :
Running “/home/ubuntu/workspace/TestLibrary.c”
/tmp/ccuX24oo.o: In function main': TestLibrary.c:(.text+0x15): undefined reference toSDL_Init’
TestLibrary.c:(.text+0x3a): undefined reference to SDL_CreateWindow' TestLibrary.c:(.text+0x54): undefined reference toSDL_CreateRenderer’
TestLibrary.c:(.text+0x64): undefined reference to SDL_RenderPresent' TestLibrary.c:(.text+0x6e): undefined reference toSDL_Delay’
TestLibrary.c:(.text+0x73): undefined reference to `SDL_Quit’
collect2: error: ld returned 1 exit status

Please someone could help me ! or give me a other type of graphic library + training :wink:

THANKS