delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/06/07/14:03:47

From: Maurice Lombardi <Maurice DOT Lombardi AT ujf-grenoble DOT fr>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: *********GPC in RHIDE*************
Date: Wed, 07 Jun 2000 19:11:12 +0200
Organization: Universite Joseph Fourier - Grenoble 1
Lines: 48
Message-ID: <393E8230.E8F1589E@ujf-grenoble.fr>
References: <8hji8k$pdf$1 AT neptunium DOT btinternet DOT com>
NNTP-Posting-Host: knautie.ujf-grenoble.fr
Mime-Version: 1.0
X-Trace: amazone.ujf-grenoble.fr 960398844 5532 193.54.234.27 (7 Jun 2000 17:27:24 GMT)
X-Complaints-To: abus AT ujf-grenoble DOT fr
NNTP-Posting-Date: 7 Jun 2000 17:27:24 GMT
X-Mailer: Mozilla 4.7 [fr] (Win98; U)
X-Accept-Language: fr,it,en
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Barry Hanley a écrit :
> 
> Trying to compile a Pascal Program in  Rhide with the units Dos + Crt
> required
> 
> Added the lines
> 
> RHIDE_COMPILE_LINK_PASCAL_AUTOMAKE=$(RHIDE_LD_PASCAL) $(RHIDE_LIBDIRS)
> $(RHIDE_LDFLAGS) -o $(OUTFILE) --automake $(RHIDE_GPC_FLAGS) $(SOURCE_NAME)
> $(RHIDE_LDFLAGS)
> 
> to the Rhide.env file

better use --autobuild, there are currently problems with automake 
Some library parameters are missing also. Try

RHIDE_COMPILE_LINK_GPC_AUTOMAKE=$(RHIDE_LD_PASCAL) $(RHIDE_LIBDIRS) -o
$(OUTFILE) --autobuild $(RHIDE_GPC_FLAGS)  $(SOURCE_NAME) $(LIBRARIES)
$(LDFLAGS) $(RHIDE_LDFLAGS) $(RHIDE_LIBS)

> Also made the file  pdcurs24.beta.22-May-99 and run the programs Firework ,
> xmas etc
> 
> But when I try to Build the crtdemo.pas or the program I have, I get the
> errors;
> 
> error :undefined reference to 'Getxmax'
>    "         "               "          "   Getymax'
> etc
> 
> I also name the Primary file as crtdemo.pas
> I have put the pdcuses.a + panel.a in the lib directory

This is not necessary with recent versions of gpc which include them
automatically (and anyhow is not used due to missing $(RHIDE_LIBS) in
your Rhide.env file).
What are your versions of gpc (gcc) and rhide (the previous
RHIDE_COMPILE_... is adapted from a makefile generated by rhide 1.4.7.6)
?

-- 
       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 51 45 44
mailto:Maurice DOT Lombardi AT ujf-grenoble DOT fr

- Raw text -


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