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 Subject: Re: Errors when using ".h" headers In-Reply-To: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" 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 >#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 !