I am just new to SDL. I'm trying to create a line on the screen. I keep getting an error message saying "undefined reference to 'lineRGBA'". Here's my code:
#include "SDL.h"
#include "SDL_gfxPrimitives.h"
const int WINDOW_WIDTH = 640;
const int WINDOW_HEIGHT = 480;
int main(int argc, char **argv)
{
SDL_Init( SDL_INIT_VIDEO );