Article View: gnu.gcc.help
Article #50053trouble with DJGPP's libgr.......i think
From: Tony
Date: Fri, 19 Nov 1993 06:15
Date: Fri, 19 Nov 1993 06:15
32 lines
1432 bytes
1432 bytes
hi,
I cant get any programs which use the gr library with DJGPP to work..
even the simplest ones like:
#include <stdio.h>
#include <graphics.h>
main()
{
GrSetMode(GR_default_graphics);
GrLine(10,10,100,100,15);
getch();
GrSetMode(GR_default_text);
}
OK...this should draw a line...right???
I compile it like this: gcc test.c -lgr
And run it like this : go32 a.out
and all that happens is that it changes the screen colors and waits for
a keypress and goes back to the dos command line....
can someone please tell me what i'm doing wrong..or not doing at all...
ummm...I've set up the environment variables like it says in the docs..
Tony
s924120@yallara.cs.rmit.oz.au
Technical Details
Message-ID:
<2cho9t$rso@goanna.cs.rmit.oz.au>Path:
arc1-ca.pugleaf.net!gmd.de!newsserver.jvnc.net!howland.reston.ans.net!vixen.cso.uiuc.edu!sdd.hp.com!cs.utexas.edu!uunet!munnari.oz.au!goanna.cs.rmit.oz.au!yallara!s924120Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,92abf0b32406c612,start X-Google-Attributes: gid11318c,public X-Google-ArrivalTime: 1993-11-18 23:45:27 PST Path: arc1-ca.pugleaf.net!gmd.de!newsserver.jvnc.net!howland.reston.ans.net!vixen.cso.uiuc.edu!sdd.hp.com!cs.utexas.edu!uunet!munnari.oz.au!goanna.cs.rmit.oz.au!yallara!s924120 From: s924120@yallara.cs.rmit.OZ.AU (Tony) Newsgroups: gnu.gcc.help Subject: trouble with DJGPP's libgr.......i think Date: 19 Nov 1993 06:15:25 GMT Organization: Comp Sci, RMIT, Melbourne, Australia Lines: 33 Message-ID: <2cho9t$rso@goanna.cs.rmit.oz.au> NNTP-Posting-Host: yallara.cs.rmit.oz.au Summary: trouble with DJGPP's libgr.....i think Keywords: djgpp