This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Undefined References
- From: "Tom Browder" <tom dot browder at gmail dot com>
- To: "Michael Sullivan" <michael at espersunited dot com>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Fri, 30 Nov 2007 22:01:22 -0600
- Subject: Re: Undefined References
- References: <1196472393.10202.18.camel@camille.espersunited.com>
On Nov 30, 2007 7:26 PM, Michael Sullivan <michael@espersunited.com> 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