From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1010 invoked by alias); 1 Dec 2007 04:28:23 -0000 Received: (qmail 1002 invoked by uid 22791); 1 Dec 2007 04:28:23 -0000 X-Spam-Check-By: sourceware.org Received: from adsl-70-234-122-254.dsl.tul2ok.sbcglobal.net (HELO baby.espersunited.com) (70.234.122.254) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sat, 01 Dec 2007 04:28:19 +0000 Received: from camille.espersunited.com ([192.168.1.3]) by baby.espersunited.com with esmtp (Exim 4.68) (envelope-from ) id 1IyJxd-0003tG-EC; Fri, 30 Nov 2007 22:28:13 -0600 Subject: Re: Undefined References From: Michael Sullivan To: Tom Browder Cc: gcc-help@gcc.gnu.org In-Reply-To: <8bc817ee0711302001y5985e7c8ke9fa0b5dda0f417@mail.gmail.com> References: <1196472393.10202.18.camel@camille.espersunited.com> <8bc817ee0711302001y5985e7c8ke9fa0b5dda0f417@mail.gmail.com> Content-Type: text/plain Date: Sat, 01 Dec 2007 04:28:00 -0000 Message-Id: <1196483295.25393.4.camel@camille.espersunited.com> Mime-Version: 1.0 X-Mailer: Evolution 2.12.1 Content-Transfer-Encoding: 7bit X-SpamScore: 0.0 (/) X-SpamReport: baby.espersunited.com detected 0.0 spam points 5.0 points required to mark as spam Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org X-SW-Source: 2007-12/txt/msg00004.txt.bz2 On Fri, 2007-11-30 at 22:01 -0600, Tom Browder wrote: > On Nov 30, 2007 7:26 PM, Michael Sullivan 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: > ... > > Without even looking in detail at the source I see that the following > line is a compile line and should not have anything but the source > being compiled: > > > battle.o: battle.cpp > > reset; $(CC) $(CFLAGS) -c battle.cpp character.o $(LIBS); rm *~ > > Try changing to: > > battle.o: battle.cpp > reset; $(CC) $(CFLAGS) -c battle.cpp; rm *~ > > and see what happens. > > -Tom > > Tom Browder > Niceville, Florida > USA This is make battle after applying the change you suggested, I deleted *.o just to make sure the object files were cureent: In file included from battle.cpp:4: /usr/local/include/SDL/SDL_gfxPrimitives.h:17:17: error: SDL.h: No such file or directory character.h:8: warning: 'class Character' has virtual functions but non-virtual destructor battle.cpp: In member function 'SDL_Surface* battle::drawString(int, int, char*)': battle.cpp:72: warning: missing initializer for member 'SDL_Color::unused'