delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/05/28/11:42:52

Message-Id: <3.0.5.32.19990528114447.007b8e00@jafar.uqar.uquebec.ca>
X-Sender: ruuhlkar AT jafar DOT uqar DOT uquebec DOT ca
X-Mailer: QUALCOMM Windows Eudora Light Version 3.0.5 (32)
Date: Fri, 28 May 1999 11:44:47 -0400
To: djgpp AT delorie DOT com
From: Karel Uhlir <Karel_Uhlir AT UQAR DOT UQuebec DOT CA>
Subject: Help needed: libf2c.a library (fortran)
Mime-Version: 1.0
Reply-To: djgpp AT delorie DOT com

Hello,

After many tries, I can compile a simple fortran file, but I cannot link it.
I use the Rhide developping tool under Win95. I use recent versions of all
files (DJGPP, Rhide, etc.) which I downloaded and installed last week (05/99).

Simple file tested:   simptest.f
Content of simptest.f:

       real x, poly
       print *, 'What value of x?'
       read *,x
       poly = 2.0*(x**4) - 15.0*(x**3)-2.0*(x**2)+120.0*x-130.0
       print *, 'For x = ', x, ' the value of the polynomial is ', poly
       end

Compile: no errors

"Make" gives the following error message:

Error: d:/djgpp/bin/ld.exe: cannot open -lf2c: No such file or directory
(ENOENT)

I have searched all over to conclude that I am missing the libf2c.a library
(or something similar). I have found a few source codes of this library,
and tried to compile them without much success.    (How is a "makefile"
used under DOS/Win95 ????  or do I use Rhide to compile/make this library???)

I really need advice as I have to get this compiler running (to compile
fortran files) within a couple of days.

Thank you,

Karel




- Raw text -


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