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

Vance, Michael Michael.Vance at activision.com
Wed Jul 28 10:50:46 PDT 2010


As Justin Coleman later pointed out, look at your last compilation line there.

Also use pastebin next time :).

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:26 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 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
> CFLAGS?
> 
> _______________________________________________
> SDL mailing list
> SDL at lists.libsdl.org
> http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
______________________________________________________________________



More information about the SDL mailing list