www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2002/03/27/12:15:18

X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-bounces using -f
From: Maurice Lombardi <Maurice DOT Lombardi AT ujf-grenoble DOT fr>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Problem using GRX with GPC compiler
Date: Wed, 27 Mar 2002 18:07:46 +0100
Organization: Universite Joseph Fourier - Grenoble 1
Lines: 72
Message-ID: <3CA1FC62.50800@ujf-grenoble.fr>
References: <000701c1d5a4$79944ec0$6f6d80d9 AT gfhj>
NNTP-Posting-Host: knautie.ujf-grenoble.fr
Mime-Version: 1.0
X-Trace: rhone.ujf-grenoble.fr 1017248847 27782 152.77.252.196 (27 Mar 2002 17:07:27 GMT)
X-Complaints-To: abuse AT ujf-grenoble DOT fr
NNTP-Posting-Date: Wed, 27 Mar 2002 17:07:27 +0000 (UTC)
User-Agent: Mozilla/5.0 (Windows; U; Win98; fr-FR; rv:0.9.4) Gecko/20011128 Netscape6/6.2.1
X-Accept-Language: fr-fr, it, en
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Davy wrote:

> Hi! Don't know if I'm in the right place to request some help...
> 
> I'm using GPC on Linux system at school. I'm using a windows/dos system 
> so I find DJGPP to use GPC on my computer. I can compile libraries,I can 
> use them... But I really don't find how to compile some programs which 
> works with GRX library :/   I've unzipped grx23.zip in djgpp directory.  
> How can I do that? Have I to compile grx.pas before my program(when I do 
> that I've got compiling errors in GRX),or is it just a command line to 
> use when compiling my program? and what library name have I to put in my 
> program to use GRX library??( Uses "whatname"; )
> 

- First use the last version of grx, grx244 at present, you can obtain it
from the homepage

http://www.gnu.de/software/GRX/

- Download the zip file from the download page on this site in some temp directory

- then:

cd c:\djgpp                     (if that is your root djgpp directory)
unzip32 c:\temp\grx244s.zip

it will unzip into the directory c:\djgpp\contrib\grx244

- You need to compile the library and the test programs.
Read the readme file in the c:\djgpp\contrib\grx244 directory.

- In summary you have to
       edit makedefs.grx (including in particular INCLUDE_GPC_SUPPORT=y)
cd c:\djgpp\contrib\grx244
make -f makefile.dj2

- then install with

make -f makefile.dj2 install
make -f makefile.dj2 install-fonts
make -f makefile.dj2 install-info

- then switch to the pascal subdirectory to run the tests
(they have been compiled with the library if you run make
from the grx244 root directory instead of the src subdirectory)

- for use into your programs you should know that two import units
have been installed into the c:\djgpp\units directory: grx.pas
for native grx programming, graph.pas for Borland BP emulation.

So in your gpc programs include a uses clause e.g.
uses grx;
and compile with the compilation option
gpc myprog.pas -o myprog.exe --automake --unit-path=c:/djgpp/units

(or put a copy of grx.pas in the same directory as myprog.pas and omit
the --unit-path)

Good luck
(I use all this daily without problem)

Maurice

-- 
        Maurice Lombardi
Laboratoire de  Spectrometrie Physique,
Universite Joseph Fourier de Grenoble, BP87
38402 Saint Martin d'Heres Cedex     FRANCE
Tel: 33 (0)4 76 51 47 51
Fax: 33 (0)4 76 63 54 95
mailto:Maurice DOT Lombardi AT ujf-grenoble DOT fr

- Raw text -


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