On Dec 1, 2007 5:31 AM, Michael Sullivan <michael@xxxxxxxxxxxxxxxx> wrote: > On Fri, 2007-11-30 at 22:43 -0600, Tom Browder wrote: > > On Nov 30, 2007 10:28 PM, Michael Sullivan <michael@xxxxxxxxxxxxxxxx> wrote: > > > > > > On Fri, 2007-11-30 at 22:01 -0600, Tom Browder wrote: > > > > On Nov 30, 2007 7:26 PM, Michael Sullivan <michael@xxxxxxxxxxxxxxxx> wrote: > > > > > I'm having trouble building my project. This is my first project I've > > > > > worked on that uses make, so I'm having a lot of problems with it. > > > > > Here's my Makefile: ... > > > In file included from battle.cpp:4: > > > /usr/local/include/SDL/SDL_gfxPrimitives.h:17:17: error: SDL.h: No such > > > file or directory > > > > You may need the -I (hyphen uppercase i) option to tell gcc where to > > find SDL.h. For instance: Look carefully at the gcc manual and the options to g++, the '-I' option, which may be used multiple times, gives a path to search for include files. Now, I can't help the warning at the moment, but the show stoppers are the undefined references which are probably defined in the missing libraries you asked for on the line: LIBS=`sdl-config --cflags --libs` -lSDL_image -lSDL_gfx -lSDL_ttf You probably need to add one or more '-L' options which you use to tell gcc where to find libraries (for details, see the gcc manual). -Tom Tom Browder Niceville, Florida USA