Mail Archives: djgpp/2000/05/13/17:56:14

Date: Sat, 13 May 2000 17:21:42 -0400 (EDT)
Message-Id: <>
From: Eli Zaretskii <eliz AT delorie DOT com>
To: "Alexei A. Frounze" <alex DOT fru AT mtu-net DOT ru>
CC: djgpp AT delorie DOT com
In-reply-to: <> (
Subject: Re: OT: RHIDE and G77 (FORTRAN 77)
References: <391C43DC DOT 70CAD047 AT mtu-net DOT ru>
Reply-To: djgpp AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

> From: "Alexei A. Frounze" <alex DOT fru AT mtu-net DOT ru>
> Newsgroups: comp.os.msdos.djgpp
> Date: Fri, 12 May 2000 21:48:12 +0400
> typing "g77 -o hw.exe hw.for" everything works okay and I get hw.exe that
> prints standard "hello world" message.
> When I make a project in the RHIDE, include this file to the project and try
> to compile it, I get the following messages:
> ------------------8<-------------------
> gcc   -o hw.exe  hw.o     -lm -lf2c
> d:/djgpp/bin/ld.exe: cannot find -lf2c

Does it help if you call the source file hw.f, not hw.for?

> RHIDE puts the "RHIDE_TYPED_LIBS.f=m f2c" line to the make file.

What makefile?  How does the makefile enter this picture, if you
compile the project in RHIDE?

Also, djgpp.env has this line in the [rhide] section, which should
help IIRC:


> If I change that line to "RHIDE_TYPED_LIBS.f=m" and run make, I get the
> following messages:

Instead of removing f2c, change it to g2c (g77 doesn't have libf2c.a,
it has libg2c.a).  But I really think that the above line in djgpp.env
should have already done that for you.

- Raw text -

  webmaster     delorie software   privacy  
  Copyright 2019   by DJ Delorie     Updated Jul 2019