This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: recursion ok?
- From: danny <danny at 3rdplanetsoftware dot com>
- To: Ben Elliston <bje at redhat dot com>, gcc gnu <gcc-help at gcc dot gnu dot org>
- Date: Wed, 24 Jul 2002 09:12:27 -0700
- Subject: Re: recursion ok?
- References: <3D3DDF25.1B7FDEE9@3rdplanetsoftware.com> <15678.6772.539810.19058@tooth.toronto.redhat.com> <3D3E5021.2FE48FD8@3rdplanetsoftware.com> <15678.36634.964840.896604@tooth.toronto.redhat.com>
Hey Ben,
Sorry for being such a newbie. I'm used to borland and I'm just learning
make files. I'm also confused. What is the difference between gcc, g++,
and cc?
Here is my make file. How would u change it?
Hey thanks. I think I might be asking to much here. If so please let me
know.
:-) :-)
Peace
Thanks
Danny
# Define these macros to match with your project's filenames TARGET =
esucker
OBJS = esucker.o
LIBS = -lm
CPP = gcc
CPPFLAGS = -Wall -g -DDEBUG
.SUFFIXES: .cpp
$(TARGET): $(OBJS)
$(CPP) $(CPPFLAGS) -o $@ $(OBJS) $(LIBS)
# `make clean' removes extra files that crop up during development
clean:
rm $(OBJS)
.cpp.o:
$(CPP) $(CPPFLAGS) -c $<
Ben Elliston wrote:
> >>>>> "danny" == danny <danny@3rdplanetsoftware.com> writes:
>
> danny> I believe I am using gcc. Below is a copy of my make file.
>
> You should always compile C++ programs with `g++'.
>
> Ben