From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20880 invoked by alias); 1 Dec 2007 13:09:59 -0000 Received: (qmail 20871 invoked by uid 22791); 1 Dec 2007 13:09:58 -0000 X-Spam-Check-By: sourceware.org Received: from mu-out-0910.google.com (HELO mu-out-0910.google.com) (209.85.134.185) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sat, 01 Dec 2007 13:09:54 +0000 Received: by mu-out-0910.google.com with SMTP id g7so1048183muf for ; Sat, 01 Dec 2007 05:09:51 -0800 (PST) Received: by 10.86.50.8 with SMTP id x8mr8392124fgx.1196514590058; Sat, 01 Dec 2007 05:09:50 -0800 (PST) Received: by 10.86.95.4 with HTTP; Sat, 1 Dec 2007 05:09:50 -0800 (PST) Message-ID: <8bc817ee0712010509y5be58b3bhee821c4888a31402@mail.gmail.com> Date: Sat, 01 Dec 2007 13:09:00 -0000 From: "Tom Browder" To: "Michael Sullivan" Subject: Re: Undefined References Cc: gcc-help@gcc.gnu.org In-Reply-To: <1196512977.25400.20.camel@camille.espersunited.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <8bc817ee0711302043t7eefb94eub6423ca23a449175@mail.gmail.com> <1196508719.25393.8.camel@camille.espersunited.com> <8bc817ee0712010422g139eefcfxea13bdec38b79b42@mail.gmail.com> <1196512977.25400.20.camel@camille.espersunited.com> X-IsSubscribed: yes 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/msg00016.txt.bz2 On Dec 1, 2007 6:42 AM, Michael Sullivan wrote: ... > > LIBS=`sdl-config --cflags --libs` -lSDL_image -lSDL_gfx -lSDL_ttf Show the output from make initially so I can see the results of the LIBS line. What is the 'reset' for in your make commands? A more conventional way to structure the makefile for your situation is: CXX=g++ INC = -I/usr/include/SDL all: battle battle: battle.o character.o $(CXX) -o $@ battle.o character.o $(LIBS) %.o : %.cpp $(CXX) $(CFLAGS) $< -o $@ $(INC) That way 'all' is the default target and you can just command 'make'. Now, again, I suspect the location of the libraries is part of the problem. Is the library set publicly available (and free)? > Is it normal for only portions of make all to run at a time? Yes, if it detects a target needing remaking. -Tom Tom Browder Niceville, Florida USA