delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1993/11/24/05:34:07

From: Paul Harness <gapa83 AT udcf DOT gla DOT ac DOT uk>
Pp-Warning: Illegal Via field on preceding line
Subject: Re: Help on using grx with djgpp !
To: mbsfptt AT menhpd DOT eng DOT man DOT ac DOT uk (T K Tsai)
Date: Wed, 24 Nov 1993 10:11:16 +0000 (GMT)
Cc: djgpp AT sun DOT soe DOT clarkson DOT edu (djgpp)

> 
> Hi,
>    Help is needed on using grx libraries with djgpp.  I am very new to C
> programming, hope someone can give me a hand on this.  I've got cbgrx and
> djgpp install on a 486dx 33Mhz with ET4000 adapter card.  I tried all the
> test program that come with cbgrx, and using the driver (et4000.grn).  Some
> of them seem to execute but nothing appear on the screen, some just
> complain that the adapter card is incorrect.  Well, I tried all the drivers
> that come with djgpp and cbgrx, still going no where.  I wonder anybody had
> encounter such a problem before ?
>     I have hard time trying to understand the test program, so in the end I
> wrote this little program to draw a line, 
> /* grx.c */
> #include <grx.h>
> void main(void)
> {
>    int Black, White;
>    Black = GrBlack();
>    White = GrWhite();
>    GrSetMode( GR_default_graphics );
>    GrClearScreen( Black );
>    GrLine( 0, 0, 1, 1, White );
>    GrSetMode( GR_default_text );
> }
> I just compile it as follow,
>  gcc -O -o grx grx.c -lgrx
>  go32 grx
> Nothing seem to display on the screen.  Why ?  My gcc settings are 
> 
>     set COMPILER_PATH=c:/djgpp/bin
>     set C_INCLUDE_PATH=c:/djgpp/include
>     set CPLUS_INCLUDE_PATH=c:/djgpp/cplusinc;c:/djgpp/include
>     set OBJC_INCLUDE_PATH=c:/djgpp/include
>     set OBJCPLUS_INCLUDE_PATH=c:/djgpp/include
>     set LIBRARY_PATH=c:/djgpp/lib
>     set TMPDIR=c:/wptemp
>     set GO32TMP=c:/wptemp
>     set GO32=mono driver c:/djgpp/drivers/et4000.grn gw 1024 gh 768 tw 132 th 43 nc 256
>     set MAKESTARTUP=c:/djgpp/bin/startup.gcc
>     set GRXFONT=c:/djgpp/contrib/libgrx/fonts
> 
> Could someone please help.  Thank in advance.
> 
> TzeKih TSAI
> Dept. of Aerospace Engineering
> Univ. of Manchester
> M13 9PL, UK
> 

Make sure you have the fixed version of go32 ie v1.10a. It can be found
in the file csdpmit1.zip. This is in the directory

   .../pub/msdos/djgpp/pub at omnigate.clarkson.edu,

or, as you are in Manchester in

      /pub/djgpp/pub at hpb.mcc.ac.uk


-- 
Paul Harness,                        |  Internet: gapa83 AT udcf DOT gla DOT ac DOT uk
Department of Physics and Astronomy, |
University of Glasgow,               |  Tel +44-41-339-8855 ext 8359
Glasgow, G12 8QQ, SCOTLAND.          |  Fax +44-41-334-9029

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019