From owner-freebsd-questions Tue Dec 12 11:27:38 2000 From owner-freebsd-questions@FreeBSD.ORG Tue Dec 12 11:27:36 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 7818A37B400 for ; Tue, 12 Dec 2000 11:27:34 -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 eBCJSF413344; Tue, 12 Dec 2000 22:28:16 +0300 Date: Tue, 12 Dec 2000 22:31:38 +0300 From: Alexey Matveichev X-Mailer: The Bat! (v1.47 Halloween Edition) Personal Reply-To: Alexey Matveichev X-Priority: 3 (Normal) Message-ID: <134408116.20001212223138@7ka.mipt.ru> To: Mike Meyer Cc: questions@FreeBSD.ORG Subject: Re[2]: Problems compiling C programs made by f2c In-reply-To: <14901.28205.733756.261686@guru.mired.org> References: <14901.28205.733756.261686@guru.mired.org> 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 >> 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 > Install /usr/ports/lang/f2c, and possibly add -L/usr/local/lib to the > command line before -lf2c. Thanks. It helps but I still have one problem... bash-2.04$ gcc -L/usr/lib/ -L/usr/local/lib/ -lf2c -lm ws1.c /tmp/ccnea757.o: In function MAIN__': /tmp/ccnea757.o(.text+0x256): undefined reference to second_' /tmp/ccnea757.o(.text+0x36a): undefined reference to second_' /tmp/ccnea757.o(.text+0x3c2): undefined reference to second_' /tmp/ccnea757.o(.text+0x4aa): undefined reference to second_' /tmp/ccnea757.o(.text+0x5f6): undefined reference to second_' /tmp/ccnea757.o(.text+0x7c2): more undefined references to second_' follow What library should I look for to find this function? WBR, Alexey. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message