[SDL] /usr/local/include/SDL/SDL_image.h:28:17: error: SDL.h: No such file or directory

Michael Sullivan msulli1355 at gmail.com
Wed Jul 28 10:26:23 PDT 2010

On Wed, 2010-07-28 at 10:03 -0700, Vance, Michael wrote:
> Yeah, I misread your output anyway, wasn't sensible advice, sorry ;). Your setup looks fine, have you tried building gcc with -H to see if it's picking up headers you didn't expect? Also try invoking make with -n to make sure the gcc command line it is using is what you expect.
> m.
> > -----Original Message-----
> > From: sdl-bounces at lists.libsdl.org [mailto:sdl-
> > bounces at lists.libsdl.org] On Behalf Of Michael Sullivan
> > Sent: Wednesday, July 28, 2010 1:01 PM
> > To: SDL Development List
> > Subject: Re: [SDL] /usr/local/include/SDL/SDL_image.h:28:17: error:
> > SDL.h: No such file or directory
> > 
> > On Wed, 2010-07-28 at 09:55 -0700, Vance, Michael wrote:
> > > SDL_image.h is in /usr/local/include not /usr/include? -
> > I/usr/local/include added to your CFLAGS?

michael at camille ourrpg $ make -n
g++ -W -Wall -pedantic -dH  -I/usr/local/include `sdl-config --cflags`
-c ally.cpp
g++ -W -Wall -pedantic -dH  -I/usr/local/include `sdl-config --cflags`
-c battle.cpp
g++ -W -Wall -pedantic -dH  -I/usr/local/include `sdl-config --cflags`
-c character.cpp
g++     enemy.cpp   -o enemy
make: *** No rule to make target `party.o', needed by `battle'.  Stop.

and just to be clear I do not need the  -I/usr/local/include line in

More information about the SDL mailing list