I'm trying to compile this program to start off my entry into SDL:
Code:
#include </usr/include/SDL/SDL.h>
#include <stdlib.h>
#include <stdio.h>
int main()
{
if ( SDL_Init(SDL_INIT_VIDEO) <0 ) {
printf("Unable to init SDL: %s\n", SDL_GetError());
return 1;
}
atexit(SDL_Quit);
}
But when I do, I get error messages like this:
Code:
/tmp/ccMdsGbg.o(xtest+0x16): In function `main':
: undefined reference to `SDL_Init'
/tmp/ccMdsGbg.o(xtest+0x16): In function `main':
: undefined reference to `SDL_GetError'
/tmp/ccMdsGbg.o(xtest+0x16): In function `main':
: undefined reference to `SDL_Quit'
collect2: ld returned 1 exit status
I can't gather any useful knowledge from these messages, but maybe you guys can?