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

RE: OpenInventor on SUN, X error

To: Tom Flynn <flynnt@xxxxxxxxxxxx>
Subject: RE: OpenInventor on SUN, X error
From: Rasmus Tamstorf <tamstorf@xxxxxxxxxxxxx>
Date: Fri, 9 Feb 2001 08:41:13 -0800
Cc: Gang Chen <gangchen@xxxxxxxxxxxxxx>, Loring Holden <lsh@xxxxxxxxxxxx>, connolsv@xxxxxxxx, info-inventor-dev@xxxxxxxxxxx
In-reply-to: <Pine.SGI.4.10.10102090016370.40480-100000@xxxxxxxxxxxxxxxxxxx>
Sender: owner-info-inventor-dev@xxxxxxxxxxx
On Fri, 9 Feb 2001, Tom Flynn wrote:

> If you've bought Sun's compiliers, file a bug.  It's not rocket science
> for them to add .c++ as another filename extension.  Grant it, that
> doesn't fix the immediate problem, will perhaps avert further problems in
> the future.  Odds are pretty high that they won't do anything about it
> unless you file a bug against them.
> -tom

It looks like they've actually already fixed this in the Sun WorkShop 6
Update 1 release : 

http://docs.sun.com/htmlcoll/coll.693.1/iso-8859-1/WSNEW/1.html#1009826

Also, the very latest version of the Compaq Alpha compiler (v6.3) supports
this extension :

http://www.tru64unix.compaq.com/cplus/docs/cxx_ref.htm

- but in both cases you need to be on the bleeding edge of compiler
releases to get it to work. 

Rasmus

> 
> On Fri, 9 Feb 2001, Gang Chen wrote:
> 
> > 
> > 
> > > -----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
> > 
> 
> --
> "Mongooses are famous for their snake-fighting ability, and are
>  almost always victorious because of their speed, agility, and timing
>  and also because of their thick coat."
> 
> 
> 

-----------------------------------------------------------------------------
Rasmus.Tamstorf@xxxxxxxxxx         "A problem worthy of attack, 
Walt Disney Feature Animation       proves its worth by hitting back" Kumbel
-----------------------------------------------------------------------------


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