On Thu, 8 Feb 2001, Loring Holden wrote:
> > On Thu, 8 Feb 2001, Jonathan Lim wrote:
> >
> > > On Thu Feb 8 13:13:26 2001, connolsv@xxxxxxxx wrote:
> > > >
> > > > - the SUN C++ compiler does not like the ".c++" suffix so I had to
> > > > rename such files to end in ".cc".
> > >
> > > How about making symbolic links instead? It's too much of a pain to
> > > rename all the files.
> >
> > or ... define a new rule for the compiler and tell it how to go from a
> > .c++ to a .o.
>
> It's not a Makefile issue, but a compiler problem, so this won't work. The
> compiler gives the following error:
> CC: Invalid input file name test.c++, no output generated for this file.
>
> The only way to deal w/ this is to use a different file suffix.
Well that sucks eh? :)
Why not just switch platforms then?
But seriously, you could define a rule that renamed the file to .cc just
long enough to generate a .o?
Or ... why not just use g++?
A+,
Alex.
--
Alexandre Naaman - naaman@xxxxxxx - La conformite est la mort de l'ame.
|