Article View: gnu.gcc.bug
Article #280Re: gcc versus cc
From: John Clark
Date: Thu, 06 Aug 1992 17:40
Date: Thu, 06 Aug 1992 17:40
22 lines
1418 bytes
1418 bytes
In article <9208052105.AA12439@enthuse.bellcore.com> monika@enthuse.bellcore.com (Monika Mevenkamp) writes: +I use gcc Version 1.40 (that's at least what the man-page says) +under 4SunOS Release 4.1.2. The following program is +an almost exact copy from the Pixrect Reference Manual (Fig. 3-2). +When compiled with /bin/cc (cc tst.c -lpixrect) it does what it's +supposed to do. When compiled with gcc (gcc tst.c -lpixrect) it +gets a Segmentation fault inside the pf_ttext function. The 1.40 gcc did not have a sun-cc compatible structure return convention. This prohibited the use of gcc in applications which used the sunwindow function libraries. (I think there's mention of that in the manual). GNU gcc-2.xx is supposed to have corrected that, and in a simple window app that I recently compiled with gcc-2.2.2, that appears to be true. Moral, get gcc-2 or greater, current version is 2.2.2 available at prep.ai.mit.edu. -- John Clark jclark@ucsd.edu
Technical Details
Message-ID:
<36564@sdcc12.ucsd.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!sdcc3.ucsd.edu!jclarkReferences:
<9208052105.AA12439@enthuse.bellcore.com>Show Full Headers
Complete Article Headers
Newsgroups: gnu.gcc.bug Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!sdcc3.ucsd.edu!jclark From: jclark@sdcc3.ucsd.edu (John Clark) Subject: Re: gcc versus cc Message-ID: <36564@sdcc12.ucsd.edu> Sender: gnulists@ai.mit.edu Organization: University of California, San Diego References: <9208052105.AA12439@enthuse.bellcore.com> Distribution: gnu Date: Thu, 6 Aug 1992 17:40:33 GMT Approved: bug-gcc@prep.ai.mit.edu Lines: 23