delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/02/08/06:49:12

Message-Id: <3.0.1.32.19990208124545.00908bc0@iut.ujf-grenoble.fr>
X-Sender: sletuffe AT iut DOT ujf-grenoble DOT fr
X-Mailer: Windows Eudora Pro Version 3.0.1 (32) [F]
Date: Mon, 08 Feb 1999 12:45:45 +0100
To: djgpp AT delorie DOT com
From: LETUFFE SYLVAIN <sletuffe AT iut DOT ujf-grenoble DOT fr>
Subject: Re: Errors when using ".h" headers
In-Reply-To: <Pine.GSO.3.96.990204172808.19537A-100000@eduserv2.rug.ac.b
e>
Mime-Version: 1.0
Reply-To: djgpp AT delorie DOT com

>I tried to compile and make the file arctest.c (example file located under 
>/djgpp/test/arctest.c). This file starts with the following include files;

your talking about the GRX20 graphiques libs right ?

>#include <string.h>
>#include "test.h"
>.....
>... 
>
>Compiling is no problem, but when I try to link it, there are errors like;
> 
>Error arctest.o: in function 'drawing'
>Arctest.c(16)Error: undefined reference to 'GrFilledBox'
>Can anyone explain me (exactly) what I need to do in rhide to make it
>work?

Sure, (I don't use rhide 'cause it looks a bit heavy to me...)
But I think that you can choose the correct parameters to give to gcc...

Here is the correct param you should give to gcc so that you can compile
arctest.c or anything else which uses the grxlib : libgrx20.a :

gcc arctest.c -o arctest.exe -lgrx20 
(the last option specifie to gcc that it has to use the lib libgrx20.a and
if this lib is in your 
%DJDIR%/lib this should be all right to compile, link and GO !


- Raw text -


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