Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 11 Dec 2000 12:16:17 -0500
From:      "Matthew Emmerton" <matt@gsicomp.on.ca>
To:        "Alexey Matveichev" <dlesha@7ka.mipt.ru>, <freebsd-questions@FreeBSD.ORG>
Subject:   Re: Problems compiling C programs made by f2c
Message-ID:  <009701c06396$12ca83c0$1200a8c0@gsicomp.on.ca>
References:  <1511312103.20001211152439@7ka.mipt.ru>

next in thread | previous in thread | raw e-mail | index | archive | help
> I have fortran program which nicely compiles with f77.
> Now I want to conver it to C and compile it again.
> Conversion is ok. I got C code. But problems begin here.
> 1. There's a line in C source #include "f2c.h" but f2c didn't create
> this file in current directory. All right, I took this file from
> /usr/local/include. Was I right?

Yes.  You could also try passing a -I/usr/local/include parameter to gcc
when compiling, and it will find the f2c.h file for you.

> 2. Also there's comment that says that I should compile this C code
> with keys -lf2c and -lm but when I try to do it (cc -lf2c -lm
> lalala.c) there was an error:
> /usr/libexec/elf/ld : cannot find -lf2c
>
> What should I do? ;)

Does it compile properly without -lf2c?  If not, you will need to go hunting
for libf2c.

--
Matthew Emmerton



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?009701c06396$12ca83c0$1200a8c0>