www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/12/16/00:32:53

X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-bounces using -f
Message-ID: <3C1C3064.93FB54C2@xtra.co.nz>
From: Greg & Steph <gswhite AT xtra DOT co DOT nz>
X-Mailer: Mozilla 4.75 [en]C-XTRA (Win98; U)
X-Accept-Language: en
MIME-Version: 1.0
Newsgroups: comp.os.msdos.djgpp
Subject: GRX Help Please
Lines: 52
Date: Sun, 16 Dec 2001 18:25:56 +1300
NNTP-Posting-Host: 210.55.82.88
X-Complaints-To: newsadmin AT xtra DOT co DOT nz
X-Trace: news.xtra.co.nz 1008480320 210.55.82.88 (Sun, 16 Dec 2001 18:25:20 NZDT)
NNTP-Posting-Date: Sun, 16 Dec 2001 18:25:20 NZDT
Organization: Xtra
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

I've just added GRX, followed all instructions  (??)
all the <make -f makefile.dj2>'s

All the Extra *.h's are in my djgpp\include and libgrx20a in
my djgpp\lib.

I cut and pasted the "GRX Hello World" straight from the User 
Manual...

#include <string.h>
#include <grx20.h>
#include <grxkeys.h>

int GRXMain()
{
  char *message = "Hello, GRX world";
  int x, y;
  GrTextOption grt;

  GrSetMode( GR_default_graphics );

  grt.txo_font = &GrDefaultFont;
  grt.txo_fgcolor.v = GrWhite();
  grt.txo_bgcolor.v = GrBlack();
  grt.txo_direct = GR_TEXT_RIGHT;
  grt.txo_xalign = GR_ALIGN_CENTER;
  grt.txo_yalign = GR_ALIGN_CENTER;
  grt.txo_chrtype = GR_BYTE_TEXT;

  GrBox( 0,0,GrMaxX(),GrMaxY(),GrWhite() );
  GrBox( 4,4,GrMaxX()-4,GrMaxY()-4,GrWhite() );

  x = GrMaxX()/2;
  y = GrMaxY()/2;
  GrDrawString( message,strlen( message ),x,y,&grt );

  GrKeyRead();

  return 0;
}

This Compiles Ok , but wont Make... 

Undefined Reference to "GrSetMode"
In fact Undefined Reference to every thing else starting with "Gr"

What am I doing wrong???
Do I need to set the "linker options" please explain in simplest
terms as I'm not very familiar with DOS let-alone RHIDE, DJGPP & GRX.

Thank You 
          Greg

- Raw text -


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