From: Eric Vannier Newsgroups: comp.os.msdos.djgpp Subject: Re: Missing graphics.h Date: Tue, 20 May 1997 14:22:36 +0200 Organization: Ecole Nationale Superieure des Telecommunications, Paris France Lines: 67 Message-ID: <3381978C.3D21@email.enst.fr> References: <337E426F DOT 2112 AT mail DOT tpoint DOT net> NNTP-Posting-Host: champagne.enst.fr Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Hi, In fact (but I may be wrong), you were a Borland user. In fact, graphics.h is specific to Borland. You should use another graphic library, such as Allegro. This library is free, and you can download it : http://www.talula.demon.co.uk/allegro/ Sorry, but with this library, you ll have to modify your code to make it work, but it is worth doing it. There may be a port of the borland graphic library for DJGPP, but i may be wrong. I would be happy if it helps Eric Fweibuli Brian P. Barnes wrote: > > Hi, > > I have recently downloaded DJGPP V2 and grx20. The compiler works fine > on programs that don't use graphics. When I try to compile old programs > which #include graphics.h and try to GrSetMode, djgpp can't find > graphics.h and I get an undefined reference to `GrSetMode`. Reading the > faq, I do have the djgpp environmental variables setup. `set` shows: > DJGPP=c:\djgpp\djgpp.env > GRX20DRV=VESA gw 1024 gh 768 nc 256 > GRXFONT=c:\djgpp\contrib\grx20\fonts > Strangely, I have backslashes ('\') here where the faq has front slashes > ('/'). > > and dir shows: > Volume in drive C is BRIANPBARNE > Volume Serial Number is 1F0C-9675 > Directory of C:\djgpp > > DJGPP ENV 2,199 10-05-96 7:02p DJGPP.ENV > 1 file(s) 2,199 bytes > 0 dir(s) 236,650,496 bytes free > > My programs used to run fine. I also downloaded a new grx20 tonight just > in case some files had disappeared, but there is still no graphics.h. > I have tried copying grx20.h to djgpp/include and even to the my src > directory without success. I copied everything in > djgpp/contrib/grx20/lib and include to djgpp/lib and include. I should > also note that I am using the January version, 1.1, of rhide and I have > the options->directories->lib and include pointed to djgpp/lib and > djgpp/include. > > I also looked at remus.rutgers.edu to try to find the graphics totorial, > but apparently the ~avly link is gone. I have the feeling that I am > overlooking something. Any ideas appreciated. > > Thanks, > > Brian > bbarnes AT tpoint DOT net