Dragon Master 0 Newbie Poster

Hi all

Need some help...

I want to get started with SDL, but I can't get it to work
There's what I got:

- Dev-C++ version 4.9.9.0

From www.libsdl.org I clicked on "SDL 1.2" and under
runtime libraries I downloaded:

- SDL-1.2.7-win32.zip

...and under developpement libraries I picked:

- SDL-devel-1.2.7-VC6.zip
and...
- SDL-devel-1.2.7-mingw32.tar.gz

(only VC6.zip has library and include files)

I copyed all files in both library and include from SDL
to the folders of Dev-C++

Then I started a new project and went to "Project Options"
and under "Parametres" in the "Linker" box I wrote:

-lmingw32
-mwindows
-lSDLmain
-lSDL

remember I have version 4.9.9.0
(the letter in th beginning is an l as in light or lame)

I wrote:

#include <iostream>
#include <stdlib.h>
#include <SDL/SDL.h>

using namespace std;

int main(int argc, char *argv[])
{
  
  system("PAUSE");	
  return 0;
}

I tried to compile but it outputs errors:

SDL/SDL.h: No such file or library
[Build Error] [main.o] Error 1

I followed these instructions:
http://cone3d.gamedev.net/cgi-bin/index.pl?page=tutorials/gfxsdl/index

Still it doesn't work plz help!!!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.