How to install SDL in ubuntu

Hello, This may sound a bit stupid but it seems I’m not able to install
properly the libraries. Since ubuntu can’t handle *.rpm files I can’t use:
SDL-devel-1.2.11-1.i386.rpm. I have tried using the synaptic to download all
the sdl libraries, but even after downloading all I could find about it, I
still get the following error:

sdlhola.c:2:18: error: string: No such file or directory
sdlhola.c:12: error: expected ?)? before ?:? token
sdlhola.c: In function ?main?:
sdlhola.c:45: warning: assignment makes pointer from integer without a cast
sdlhola.c:46: warning: assignment makes pointer from integer without a cast
sdlhola.c:61:2: warning: no newline at end of file

I use this headers:

#include “SDL/SDL.h”
#include

I am following this tutorial :
http://lazyfoo.net/SDL_tutorials/lesson02/index.php
I bet its something very stupid that I’m not seeing._________________________________________________________________
Visita MSN Latino Noticias: Todo lo que pasa en el mundo y en tu pa?n, ?en
tu idioma! http://latino.msn.com/noticias/

I use this headers:

#include “SDL/SDL.h”

The compiler found this header, since it didn’t report an error here.
This means you probably have SDL installed correctly.

#include

This is a C++ header, you’re compiling a C program. That’s where your
errors are coming from.

–ryan.

Maximiliano Valle wrote:

I use this headers:

#include “SDL/SDL.h”
#include

it should be “string.h” not “string”

Colin–
Colin Tuckley | @Colin_Tuckley | PGP/GnuPG Key Id
+44(0)1903 236872 | +44(0)7799 143369 | 0x1B3045CE

Artificial Intelligence is no match for natural stupidity.

Colin Tuckley <colin tuckley.org> writes:

#include

it should be “string.h” not “string”

Actually LazyFoo’s tutorials are strictly C++. This means that you need to
compile the program as a C++ file to get the program to run correctly. Use the
g++ command to do your compiling, for example, instead of typing gcc to compile.