Article View: gnu.gcc.bug
Article #274gcc versus cc
From: Monika Mevenkamp
Date: Wed, 05 Aug 1992 13:05
Date: Wed, 05 Aug 1992 13:05
34 lines
1417 bytes
1417 bytes
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.
Please let me know whether there is a known bug producing this
problem and whether there is a way to get around it.
Monika
--------------------------------------------------------------------
The program:
#include <pixrect/pixrect_hs.h>
main()
{
struct pixrect *screen;
struct pixfont *pix_ft;
struct pr_prpos tpos;
int op = PIX_SET;
screen = pr_open("/dev/fb");
pix_ft = pf_open("/usr/lib/fonts/fixedwidthfonts/screen.r.12");
tpos.pr = screen;
tpos.pos.x = 100;
tpos.pos.y = 100;
pf_ttext(tpos, op, pix_ft, "TST text ...!");
pf_close(pix_ft);
pr_close(screen);
}
Technical Details
Message-ID:
<9208052105.AA12439@enthuse.bellcore.com>Path:
arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!enthuse.bellcore.com!monikaShow Full Headers
Complete Article Headers
Newsgroups: gnu.gcc.bug Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!enthuse.bellcore.com!monika From: monika@enthuse.bellcore.com (Monika Mevenkamp) Subject: gcc versus cc Message-ID: <9208052105.AA12439@enthuse.bellcore.com> Sender: gnulists@ai.mit.edu Organization: GNUs Not Usenet Distribution: gnu Date: Wed, 5 Aug 1992 13:05:21 GMT Approved: bug-gcc@prep.ai.mit.edu Lines: 35