From: Couperin Newsgroups: comp.os.msdos.djgpp,comp.lang.pascal.misc Subject: [GNU Pascal] How I installed BGI2GRX Followup-To: comp.os.msdos.djgpp Message-ID: <39515994.1760908@news.free.fr> X-Newsreader: Forte Free Agent 1.21/32.243 Lines: 34 Date: Thu, 22 Jun 2000 00:08:49 GMT NNTP-Posting-Host: 212.27.46.243 X-Complaints-To: abuse AT proxad DOT net X-Trace: nnrp1.proxad.net 961632529 212.27.46.243 (Thu, 22 Jun 2000 02:08:49 MEST) NNTP-Posting-Date: Thu, 22 Jun 2000 02:08:49 MEST Organization: Guest of ProXad - France To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com [GNU Pascal] How I installed BGI2GRX For a long time, I tried to install BGI2GRX (with GRX23 and BCC2GRX) and didn't succeed.. I think now that it is due to a linking compilation problem with GPC. (I use GNU Pascal compiler version 2.0 beta 19990503 with GNU C 2.8.1.) I couldn't run make_all.bat (to install BGI2GRX demo files) and I couldn't compile any Pascal source with the unit BGI2GRX. Here is what I did to solve the problem (I think it might interst those who have the same problem) : 1/ I put BGI2GRX.PAS in C:\DJGPP\lib\djgpp\gcc-lib\djgpp\2.81\units. 2/ In the file make_all.bat, I replaced "automake" by "autobuild". 3/ I ran make_all.bat (it failed but created bgi2grx.o, bgi2grx.gpi, sh_funcs.o and sh_funcs.gpi). 4/ I renamed BGI2GRX.PAS into bak_BGI2GRX.PAS, and SH_FUNCS.PAS into bak_SH_FUNCS.PAS. 5/ I ran, for the second time, make_all.bat... and it created the exe files. In fact, there is another problem with the demo file COLORS.PAS : There is errors in lines 42,,43,,46, 54, 55, 58, 66, 67, 70, 78, 79 and 82. To compile this file, I had to replace in these lines "Word" by "Trunc". Now, I can compile my own files with the BGI2GRX unit, using bgi2grx.o. To compile files that include two units (BGI2GRX and Crt, for example), I have to use the same kind of trick. Do you know something better ? -- Couperin f DOT couperin AT online DOT fr