delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/06/01/02:51:55

X-Authentication-Warning: ieva01.lanet.lv: pavenis owned process doing -bs
Date: Tue, 1 Jun 1999 09:44:38 +0300 (WET)
From: Andris Pavenis <pavenis AT lanet DOT lv>
To: djgpp AT delorie DOT com
Subject: Re: Help needed: libf2c.a library (fortran)
In-Reply-To: <7iv9e4$brk$1@usenet.kreonet.re.kr>
Message-ID: <Pine.A41.4.05.9906010943060.71780-100000@ieva01.lanet.lv>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com


On Tue, 1 Jun 1999, DoLL wrote:

> I don't have 'libf2c.a', but g77 works well.
> 
> I make  your simptest.f using the command
> > g77 simptest.f -o simptest.exe
> 
> No Error, No Warning messages.
> 
> When I try to make using gcc,
> like this : gcc simptest.f -o simptest.exe -lf2c
> 
> It gives me the Error message :
> Error: d:/djgpp/bin/ld.exe: cannot open -lf2c: No such file or directory
> (ENOENT)
> 
> How do you compile and link your fortran file?
> 

Try 

g77 simptest.f -o simptest.exe

or

gcc simptest.f -o simptest.exe -lg2c -lm



- Raw text -


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