From owner-freebsd-questions Mon Dec 11 4:20:42 2000 From owner-freebsd-questions@FreeBSD.ORG Mon Dec 11 04:20:40 2000 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from 7ka-campus-gw.mipt.ru (7ka-campus-gw.mipt.ru [194.85.83.97]) by hub.freebsd.org (Postfix) with ESMTP id 6195337B402 for ; Mon, 11 Dec 2000 04:20:38 -0800 (PST) Received: from alliance.8ka.mipt.ru (alliance.8ka.mipt.ru [194.85.83.22]) by 7ka-campus-gw.mipt.ru (8.11.1/8.11.1) with ESMTP id eBJCLtC08899 for ; Tue, 19 Dec 2000 15:21:55 +0300 Date: Mon, 11 Dec 2000 15:24:39 +0300 From: Alexey Matveichev X-Mailer: The Bat! (v1.47 Halloween Edition) Personal Reply-To: Alexey Matveichev X-Priority: 3 (Normal) Message-ID: <1511312103.20001211152439@7ka.mipt.ru> To: freebsd-questions@FreeBSD.ORG Subject: Problems compiling C programs made by f2c Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi All. 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? 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? ;) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message