.:`=-~rANdOm~`-=:. Game Servers

Support (Read Only) => Help => Topic started by: Сєşάя on August 06, 2012, 01:30:14 PM

Title: SDL.h: no such directory or file
Post by: Сєşάя on August 06, 2012, 01:30:14 PM
Hi guys.

I'm starting with SDL for C and when I compile (MinGW/GCC) he says that SDL.h does not exist. I'm getting crazy with that shit and I need help, I link with -lSDL but nothing, same problem. The SDL.h are in include/SDL/SDL.h like another headers. Thx for read and thx for help.
Title: Re: SDL.h: no such directory or file
Post by: blαh2355 on August 06, 2012, 02:01:53 PM
Hi guys.

I'm starting with SDL for C and when I compile (MinGW/GCC) he says that SDL.h does not exist. I'm getting crazy with that shit and I need help, I link with -lSDL but nothing, same problem. The SDL.h are in include/SDL/SDL.h like another headers. Thx for read and thx for help.
I don't know much about programming but can you provide a partial pic of the code. Would be more helpful, thanks.
Title: Re: SDL.h: no such directory or file
Post by: Сєşάя on August 06, 2012, 02:08:56 PM
I don't know much about programming but can you provide a partial pic of the code. Would be more helpful, thanks.

The code is not necessary, the compiler just don't find the header file.
Waiting more halps
Title: Re: SDL.h: no such directory or file
Post by: coolzeldad on August 06, 2012, 02:52:51 PM
Are you including the header in main.. or w/e is using it?

#include "include/SDL/SDL.h"
Title: Re: SDL.h: no such directory or file
Post by: Сєşάя on August 06, 2012, 04:52:02 PM
Are you including the header in main.. or w/e is using it?

#include "include/SDL/SDL.h"

I did:

#include <SDL/SDL.h>
Title: Re: SDL.h: no such directory or file
Post by: blαh2355 on August 06, 2012, 06:36:05 PM
Try this:

http://stackoverflow.com/questions/9350375/error-sdl-h-no-such-file-or-directory (http://stackoverflow.com/questions/9350375/error-sdl-h-no-such-file-or-directory)

I'm assuming you have SDL installed correctly.
Title: Re: SDL.h: no such directory or file
Post by: Сєşάя on August 06, 2012, 06:51:23 PM
Try this:

http://stackoverflow.com/questions/9350375/error-sdl-h-no-such-file-or-directory (http://stackoverflow.com/questions/9350375/error-sdl-h-no-such-file-or-directory)

I'm assuming you have SDL installed correctly.

I saw a bout -I parameter, I didn't tried. Now it's 22:50 GMT-3 and I need sleep. Going to do this tomorrow... If don't work, don't lock this thread