info-inventor-dev
[Top] [All Lists]

RE: OpenInventor on SUN, X error

To: Alexandre Naaman <naaman@xxxxxxxxxxxxxxxxxxxx>, Loring Holden <lsh@xxxxxxxxxxxx>
Subject: RE: OpenInventor on SUN, X error
From: Gang Chen <gangchen@xxxxxxxxxxxxxx>
Date: Fri, 9 Feb 2001 09:58:33 +0800
Cc: Jonathan Lim <jlim@xxxxxxxxxxxxxxxxxxxx>, connolsv@xxxxxxxx, info-inventor-dev@xxxxxxxxxxx
Sender: owner-info-inventor-dev@xxxxxxxxxxx


> -----Original Message-----
> From: Alexandre Naaman [mailto:naaman@xxxxxxxxxxxxxxxxxxxx]
> Sent: Friday, February 09, 2001 6:19 AM
> To: Loring Holden
> Cc: Jonathan Lim; connolsv@xxxxxxxx; info-inventor-dev@xxxxxxxxxxx
> Subject: Re: OpenInventor on SUN, X error
>
>
> 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++?
>

Yes, why not ? especially on a SUN ! Its compiler is somehow ...

I solved this problem by writing a C program, it recursively
find *.c++ file and change to *.cpp, and add a line at its top to use
procompile tech, so compiling time could be reduced very much.


Regards
Chen Gang

<Prev in Thread] Current Thread [Next in Thread>