This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: recursion ok?


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]