[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: compiling c++ source files
From: |
Nicola Pero |
Subject: |
Re: compiling c++ source files |
Date: |
Sun, 7 Dec 2003 15:04:15 +0000 (GMT) |
> > An alternative which also works is the following:
> >
> > ====
> >
> > include $(GNUSTEP_MAKEFILES)/common.make
> >
> > CC=g++
> >
> > TOOL_NAME = Program
> > Program_CC_FILES = main.cc
> >
> > include $(GNUSTEP_MAKEFILES)/tool.make
> >
> > ====
>
> This only works if g++ happens to be the c++-compiler equivalent of
> gnustep-make's CC. This isn't always the case. (It wouldn't work on my
> system; I have many versions of gcc installed, so I really need projects
> to honor my CC settings.)
Thanks - very good point. I think manually adding -lstdc++ is probably
the best option then ?