From: "Mr. Veli Suorsa" Sender: vjsuorsa AT Surfeu DOT Fi To: Djgpp AT delorie DOT com, Gpc AT gnu DOT de Cc: Maurice Lombardi , VJSuorsa AT Surfeu DOT Fi Date: Tue, 20 Mar 2001 11:46:10 +0200 Subject: Re: Need GPC installation X-Mailer: CWMail Web to Mail Gateway 2.6k, http://netwinsite.com/top_mail.htm Message-id: <3ab726e2.31e3.0@surfeu.fi> X-User-Info: 193.167.106.194 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Reply-To: djgpp AT delorie DOT com Hi! Thanks for your reply! >Mr. Veli Suorsa wrote >> >> I use latest Rhide and it works fine with Gnu C/ C++ and >> Fortran compiler. Some new features are still hoped ;-). >> >> I have tried to install GPC to Dos / Djgpp (from download >> sites a zip-file, >gpc20bb.zip). >> >> Can You help me, because I need pascal to my test and Gpc >> compiler don't works? Or can you tell me who can solve >> this problem! I have read your instructions and done all >> right, but they are not good enough to succeed >> installation in Dos / Djgpp. >> >> What should I do? > >What have you done exactly ? > From where have you downloaded gpc20bb.zip: may be >outdated. I first download GPC from mirror sites: ftp://ftp.funet.fi/pub/mirrors/simtel.net/pub/simtelnet/gnu/djgpp/v2gnu/gpc20bb.zip It does not work with latest Rhide and Dos/ Djgpp. I tried (with Big African Chief help) sites: ftp://agnes.dida.physik.uni-essen.de/gnu-pascal/djgpp/gpc20ab.zip It does not work with Rhide, neither. And I got a new download- siteaddress from CloseBSD, which works: ftp://agnes.dida.physik.uni-essen.de/home/maurice/gpc2952b.zip >What exactly does not work and what are error messages ? I saw from Rhide screen command: gpc -o pay3_4.exe --automake="-g" -g pay3_4.pas -lgpc -lm before editing djgpp.env file. and error message was like: ... undefined reference to '-p-inoutres' ... collect2: ld returned 1 exit status Adviced GPC version works with Rhide Menu in two parts: -compiler and -make, not yet -Build all. Can you tell me why -Build all does not works? From Dos command line Gpc compiler: gpc -g -c pay3_4.p -o pay3_4.o works, ... and make: gcc -o pay3_4.exe pay3_4.o -lgpc -lm works, too. I had to do some adds/ changes to djgpp.env file like: [gpc] COMPILER_PATH=%/>;COMPILER_PATH%%DJDIR%/bin [rhide] RHIDE_TYPED_LIBS_DJGPP.p=gpc m RHIDE_TYPED_LIBS_DJGPP.pas=gpc m PASCAL_TYPE=GPC RHIDE_LD_PASCAL=gcc RHIDE_COMPILE_GPC=$(RHIDE_GPC) $(RHIDE_GPC_FLAGS) $(LOCAL_OPT) -c $(SOURCE_NAME) -o $(OUTFILE) RHIDE_COMPILE_LINK_GPC=$(RHIDE_LD_PASCAL) $(RHIDE_LIBDIRS) $(C_EXTRA_FLAGS) -o $(OUTFILE) $(OBJFILES) $(LIBRARIES) $(RHIDE_LDFLAGS) $(LDFLAGS) $(RHIDE_LIBS) RHIDE_COMPILE_LINK_PASCAL_AUTOMAKE=$(RHIDE_COMPILE_LINK_$(PASCAL_TYPE)) And so on... You can see all these Rhide variables from saved *.mak file. I really hope that someone do a good installation program (and instructions, too) for these variables. My test program (pay3_4.p, that you have seen before) size of .exe file (436 kb) is 3 times larger than Fortran (150 kb). Strip helps to 300 kb, but is there anywhere a better optimizer? I really think that someone can do it with assembler within 1 KB. Thank you very much and see you soon! Veli Suorsa --- "People must believe to the future to be able to live!" ---------------------------------- J.V.Snellman, 1890. Oulu, FINLAND Mailto:VJSuorsa AT Surfeu DOT Fi http://members.surfeu.fi/veli.suorsa/ http://www.surfeu.fi