From: "Lawrence Robins" Newsgroups: comp.os.msdos.djgpp References: Subject: Re: OT: RHIDE and G77 (FORTRAN 77) Date: Sun, 14 May 2000 15:56:16 -0400 Lines: 37 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2919.6600 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600 NNTP-Posting-Host: pm7a-41.his.com Message-ID: <391f05bc_2@news1.his.com> X-Trace: 14 May 2000 15:59:56 -0400, pm7a-41.his.com Organization: Heller Information Services To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Thanks, this has been a very interesting discussion for me! I was also getting the error message > Error: c:/djgpp/bin/ld.exe: cannot open -lf2c: > No such file or directory (ENOENT) > Error: collect2: ld returned 1 exit status when trying to link Fortran programs using RHIDE (with the Make or Build All command). My environment files were initially 1) ..\SHARE\RHIDE\RHIDE_.ENV containing the following line: RHIDE_TYPED_LIBS.f=g2c m 2) DJGPP.ENV containing the following lines: [rhide] ...... (some other lines) RHIDE_TYPED_LIBS_DJGPP.f=g2c m Now I find that renaming or copying RHIDE_.ENV to RHIDE.ENV (as Mr. Frounze suggests), with no other changes, fixes the problem. Furthermore, editing DJGPP.ENV to change RHIDE_TYPED_LIBS_DJGPP.f=g2c m to RHIDE_TYPED_LIBS.f=g2c m with no other changes (i.e., don't create RHIDE.ENV from RHIDE_.ENV in this case) also fixes the problem. To summarize, the correct fix is to put the line RHIDE_TYPED_LIBS.f=g2c m in either RHIDE.ENV, or the [rhide] section of DJGPP.ENV. RHIDE_.ENV is apparently a "sample" environment file that must be renamed to RHIDE.ENV to make it active.