Newbie to SDL needs help with installing SDL

Hi and thanks for reading this. I have been trying to get SDL working with Codelite with out success. SDL installed no problem and when I run sdl -config --version it gives me 1.2.13, which is correct. Below is a copy of the code I am trying to run. When I compile, 2 errors appear. The first is that SDL_Init cannot be found, the second is that SDL_Quit cannot be found. I am still a novice linux user and would appreciate any help.

I purposely put in “SDL/SDL_video.h” to try and force it to see this file and hopefully solve the problem, it didn’t. I am running the latest version of Codelite. Again, if anyones got a better way of doing this, please let me know. Thanks!

#include “SDL/SDL.h”
#include “SDL/SDL_video.h”
#include “SDL/SDL_quit.h”
#include <stdio.h>
#include <stdlib.h>
int main( int argc, char* args[] )
{
SDL_Init( SDL_INIT_EVERYTHING );
SDL_Quit();
return 0;
}

doftje wrote:

SDL_Init cannot be found, the second is that SDL_Quit cannot be found. I am still a novice linux user and would appreciate any help.
}

have you linked the libs??

try to use g++, read the tutorials here

http://www.lazyfoo.net/SDL_tutorials/index.php

it’s a very useful site to start!

MandarX------------------------
http://mandarx.xoom.it/index.php?lang=eng

SDL_Init cannot be found, the second is that SDL_Quit cannot be found. I am still a novice linux user and would appreciate any help.

could you explain what you did? what code? what operating system?
perhaps paste the compiler output? paste an easy to use link to the
source?

matt

Lazy foo’s website took care of it. Why didn’t I find that before? Compiling it from the command line worked. Still working on the IDE configurations. I am satisfied. Thanks for the advice!