Author Topic: SDL.h: no such directory or file  (Read 83 times)

0 Members and 1 Guest are viewing this topic.

Offline Сєşάя

  • *****
  • Posts: 631
  • Gender: Male
  • I used to be annoying
  • Respect: +72
SDL.h: no such directory or file
« on: August 06, 2012, 01:30:14 PM »
0
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.

Offline blαh2355

  • Welcome to aperture science!
  • ***
  • League PlayerWindows User
    View More Badges!

  • Posts: 3921
  • Gender: Male
  • May we perform tests on you?
  • Respect: +978
Re: SDL.h: no such directory or file
« Reply #1 on: August 06, 2012, 02:01:53 PM »
0
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.



Offline Сєşάя

  • *****
  • Posts: 631
  • Gender: Male
  • I used to be annoying
  • Respect: +72
Re: SDL.h: no such directory or file
« Reply #2 on: August 06, 2012, 02:08:56 PM »
0
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

Offline coolzeldad

  • ******
  • OwnerDonatorOld Forum MemberrNd DeveloperLinux UserWindows UserDog LoverLeague PlayerDWO Player
    View More Badges!

  • Posts: 3333
  • I eat ddos for breakfast OMNOMONOM
  • Respect: +2711
    • .:`=-~rANdOm~`-=:. Game Servers
Re: SDL.h: no such directory or file
« Reply #3 on: August 06, 2012, 02:52:51 PM »
0
Are you including the header in main.. or w/e is using it?

#include "include/SDL/SDL.h"
 ▲
▲▲Big thanks to Marie for this awesome sprite! :3

Spoiler: Moar Imagez (click to show/hide)
pingaz
Thanks Cryptokid!

Thanks gamefreak!


-- My youtube: http://www.youtube.com/coolzeldad
-- My deviantart: http://coolzeldad.deviantart.com
-- My soundcloud: http://www.soundcloud.com/coolzeldad
-- My ustream: http://www.ustream.tv/channel/coolzeldapingaz
-- My twitchtv: http://www.twitch.tv/coolzeldad

-- rNd Wiki: http://wiki.randomgs.com
-- rNd Youtube: http://www.youtube.com/RandomgsProductions
-- rNd Steam Group: http://steamcommunity.com/groups/r_A_N_d_O_m

Spoiler: rNd Typography (click to show/hide)





Every time you download Garry's Mod illegally, Garry makes a bug.

When people ask me "Plz" because its shorter than "Please" I feel perfectly justified to answer "No" because its shorter than "Yes".

derp herp lerp perp kerp serp zerp - say faiv timez fazt


Offline Сєşάя

  • *****
  • Posts: 631
  • Gender: Male
  • I used to be annoying
  • Respect: +72
Re: SDL.h: no such directory or file
« Reply #4 on: August 06, 2012, 04:52:02 PM »
0
Are you including the header in main.. or w/e is using it?

#include "include/SDL/SDL.h"

I did:

#include <SDL/SDL.h>

Offline blαh2355

  • Welcome to aperture science!
  • ***
  • League PlayerWindows User
    View More Badges!

  • Posts: 3921
  • Gender: Male
  • May we perform tests on you?
  • Respect: +978
Re: SDL.h: no such directory or file
« Reply #5 on: August 06, 2012, 06:36:05 PM »
0
Try this:

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

I'm assuming you have SDL installed correctly.



Offline Сєşάя

  • *****
  • Posts: 631
  • Gender: Male
  • I used to be annoying
  • Respect: +72
Re: SDL.h: no such directory or file
« Reply #6 on: August 06, 2012, 06:51:23 PM »
0
Try this:

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