Article View: gnu.gcc.help
Article #52076Re: gcc and xview
From: David W. Summers
Date: Thu, 18 Feb 1993 04:16
Date: Thu, 18 Feb 1993 04:16
32 lines
2030 bytes
2030 bytes
jbuck@forney.berkeley.edu (Joe Buck) writes:
>In article <1993Feb16.090409.7226@ucthpx.uct.ac.za> Greg@dip3.ee.uct.ac.za writes:
>>I am having trouble using Xview 3.0 with gcc v.2.3.3. Using the
>>standard compiler (cc) my program compiles and runs, no problem.
>>Compiling with gcc seems to work, but after the call to 'xv_init',
>>there is a segmentation fault. Is this a common problem with a simple
>>fix? Or should things be running smoothly and I'm screwing up?
>
>By default, gcc has a different convention for passing structures by value
>than Sun cc does. If you are passing a structure by value from a
>gcc-compiled routine to a cc-compiled routine, bad things may result.
>
>The -fpcc-struct-return flag makes gcc do things the way the vendor's
>compiler does.
>
>
>--
>Joe Buck jbuck@ohm.berkeley.edu
I have successfully run gcc-2.2.3 and XVIEW 3.0 with no problems. However,
some of my code still produces core dumps sometimes, but I am guessing that
it is something I'm doing wrong, rather than GCC.
- David Summers
(dws@engr.uark.edu)
--
"Never under-estimate the bandwidth of a station-wagon
David Summers full of tapes, hurtling down the highway."
dws@engr.uark.edu - Tanenbaum, "Computer Networks"
Technical Details
Message-ID:
<1993Feb18.041634.456@cseg03.uark.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!stanford.edu!agate!howland.reston.ans.net!wupost!crcnis1.unl.edu!moe.ksu.ksu.edu!engr.uark.edu!cseg03.uark.edu!dwsReferences:
<1993Feb16.090409.7226@ucthpx.uct.ac.za> <1lrt6v$bnc@agate.berkeley.edu>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,80e0fe0ac01cd3fe X-Google-Attributes: gid11318c,public X-Google-ArrivalTime: 1993-02-17 20:16:34 PST Newsgroups: gnu.gcc.help Path: arc1-ca.pugleaf.net!sparky!uunet!stanford.edu!agate!howland.reston.ans.net!wupost!crcnis1.unl.edu!moe.ksu.ksu.edu!engr.uark.edu!cseg03.uark.edu!dws From: dws@cseg03.uark.edu (David W. Summers) Subject: Re: gcc and xview Message-ID: <1993Feb18.041634.456@cseg03.uark.edu> Sender: netnews@engr.uark.edu (NetNews Administrator) Nntp-Posting-Host: cseg03.uark.edu Organization: University of Arkansas References: <1993Feb16.090409.7226@ucthpx.uct.ac.za> <1lrt6v$bnc@agate.berkeley.edu> Date: Thu, 18 Feb 1993 04:16:34 GMT Lines: 32