Mail Archives: djgpp/1999/06/01/02:51:55
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 -