Article View: gnu.gcc.help
Article #52590Re: Problems with Xview library call
From: Dan Harling
Date: Thu, 25 Jun 1992 16:33
Date: Thu, 25 Jun 1992 16:33
32 lines
2021 bytes
2021 bytes
> To: harling@roadrunner.pictel.com (Dan Harling) > Subject: Re: Problems with Xview library call > Date: Thu, 25 Jun 92 11:55:21 -0400 > From: Vivek Khera <khera@cs.duke.edu> > > try the -fpcc-struct-return option to gcc to get it to expect > structures to be returned in the same way that Sun's cc does. this is > necessary if you are calling functions compiled with sun's cc that > return structures. I tried this, but it still doesn't work. The uninitialized contents of 'holder' remain untouched after the function call. Thanks for the suggestion, though; it really sounded like it would solve the problem. FYI, the commands to build my demo program are: o gcc -c -g -ansi -pedantic -Wall -fpcc-struct-return -I/usr/guide3/include -I/usr/openwin/include -L/usr/guide3/lib -L/usr/openwin/lib -o gcc_bug.o bug.c o gcc -c -g -ansi -pedantic -Wall -fpcc-struct-return -I/usr/guide3/include -I/usr/openwin/include -L/usr/guide3/lib -L/usr/openwin/lib -o gcc_bug_ui.o bug_ui.c o gcc -g -ansi -pedantic -Wall -fpcc-struct-return -L/usr/guide3/lib -L/usr/openwin/lib -o bug_gcc gcc_bug.o gcc_bug_ui.o -lguide -lguidexv -lxview -lolgx -lX ____________________________________________________________________________ Daniel A. Harling (harling@pictel.com) PictureTel Corp. Opinions expressed are not necessarily those of Peabody, MA 01960 PictureTel, but they ought to be!
Technical Details
Message-ID:
<9206251633.AA03063@roadrunner.pictel.com>Path:
arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!roadrunner.pictel.com!harlingShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,f008f4115c16a3e9 X-Google-Attributes: gid11318c,public X-Google-ArrivalTime: 1992-06-25 04:18:38 PST Newsgroups: gnu.gcc.help Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!roadrunner.pictel.com!harling From: harling@roadrunner.pictel.com (Dan Harling) Subject: Re: Problems with Xview library call Message-ID: <9206251633.AA03063@roadrunner.pictel.com> Sender: daemon@cis.ohio-state.edu Organization: GNUs Not Usenet Distribution: gnu Date: Thu, 25 Jun 1992 16:33:33 GMT Lines: 32