Article View: gnu.gcc.help
Article #724Re: How do I compile C++ on a Sun?
From: Steve Berger
Date: Tue, 29 Dec 1992 11:09
Date: Tue, 29 Dec 1992 11:09
41 lines
2148 bytes
2148 bytes
>
> Hi there,
>
> I was wondering, how can one compile C++ source code on a Sun when none of the
> include files contains the parameters in their function prototypes? I thought
> fixincludes was supposed to take care of that but it didn't. Worse than that,
> There a few function declarations that are missing in the Suns (printf comes
> to mind) which aren't automatically generated by fixincludes. So, can anyone
> fill me in on this one? I'm trying to use gcc as an ANSI-compliant compiler
> on a non-ANSI machine and it's really something of a mild headache..
>
> Thank you for any and all information.
> --
> Laurent Duperval | The opinions expressed herein are my own and
> | do not represent those of this establishment
> duperval@ere.umontreal.ca | That's because they don't have enough $$$
> duperval@jsp.umontreal.ca | to afford them. Noone does.
>
Hi,
I've noticed that fixincludes sets the permissions on the include directory
to the wrong permissions for general read/execute access by all users. If
you installed gcc while root and then try and use it as a non priveleged
user, you will not have read permission for the files that gcc has "fixed".
The solution is to change the permissions on the files in the directory
/usr/local/lib/gcc-lib/sparc-sun-sunos4.1/2.3.3/include. For example,
chmod -R 755 /usr/local/lib/gcc-lib/sparc-sun-sunos4.1/2.3.3/include
This will recursively set permissions on all the fixed files so that
everyone can read them.
Hope this helps,
Steve Berger (sb@onripx.neuro.emory.edu)
Technical Details
Message-ID:
<9212292109.AA01709@onripx.neuro.emory.edu.noname>Path:
arc1-ca.pugleaf.net!sparky!uunet!paladin.american.edu!darwin.sura.net!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!onripx.neuro.emory.edu!sbReferences:
<1992Dec29.191058.28719@cc.umontreal.ca>Show Full Headers
Complete Article Headers
Newsgroups: gnu.gcc.help Path: arc1-ca.pugleaf.net!sparky!uunet!paladin.american.edu!darwin.sura.net!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!onripx.neuro.emory.edu!sb From: sb@onripx.neuro.emory.edu (Steve Berger) Subject: Re: How do I compile C++ on a Sun? Message-ID: <9212292109.AA01709@onripx.neuro.emory.edu.noname> Sender: gnulists@ai.mit.edu Organization: GNUs Not Usenet References: <1992Dec29.191058.28719@cc.umontreal.ca> Distribution: gnu Date: Tue, 29 Dec 1992 11:09:25 GMT Lines: 42