🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #50078

Re: trouble with DJGPP's libgr.......i think

#50078
From: Eric L. Heft
Date: Sun, 21 Nov 1993 19:58
41 lines
1720 bytes
Tony (s924120@yallara.cs.rmit.OZ.AU) wrote:
: 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


From what I understand , the MAJOR problem seems to be the version of 
go32 that you are using. I've heard that version 1.10 will not support
several video cards. Try getting a newer or at least different copy of
go32.

-- Eric
Technical Details
Message-ID: <CGuy5M.AK@mercury.wright.edu>
Path: arc1-ca.pugleaf.net!gmd.de!xlink.net!sol.ctr.columbia.edu!caen!malgudi.oar.net!mercury.wright.edu!discover!eheft
References: <2cho9t$rso@goanna.cs.rmit.oz.au>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,92abf0b32406c612
X-Google-Attributes: gid11318c,public
X-Google-ArrivalTime: 1993-11-21 12:06:43 PST
Newsgroups: gnu.gcc.help
Path: arc1-ca.pugleaf.net!gmd.de!xlink.net!sol.ctr.columbia.edu!caen!malgudi.oar.net!mercury.wright.edu!discover!eheft
From: eheft@discover.wright.edu (Eric L. Heft)
Subject: Re: trouble with DJGPP's libgr.......i think
Message-ID: <CGuy5M.AK@mercury.wright.edu>
Sender: news@mercury.wright.edu (USENET News System)
Organization: Wright State University
X-Newsreader: TIN [version 1.2 PL1]
References: <2cho9t$rso@goanna.cs.rmit.oz.au>
Date: Sun, 21 Nov 1993 19:58:34 GMT
Lines: 41