Mail Archives: djgpp/2000/05/14/15:16:10
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.
- Raw text -