[SDL] /usr/local/include/SDL/SDL_image.h:28:17: error: SDL.h: No such file or directory
Michael.Vance at activision.com
Wed Jul 28 10:03:32 PDT 2010
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.
> -----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?
> > m.
> I've altered my Makefile to:
> michael at camille ourrpg $ cat Makefile
> CFLAGS= -W -Wall -pedantic -dH -I/usr/local/include `sdl-config
> LIBS=`sdl-config --libs` -lSDL_image -lSDL_gfx -lSDL_ttf
> OBJS = ally.o battle.o character.o enemy party.o allyparty.o
> INCS = battle.h character.h
> all: battle
> battle: $(OBJS)
> $(CXX) -o $@ $(OBJS) $(LIBS)
> %.o : %.cpp $(INCS)
> $(CXX) $(CFLAGS) -c $<
> -rm *.o *~ core* battle
> and rebuilt, but the errors haven't changed...
> SDL mailing list
> SDL at lists.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