Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 12 Dec 2000 22:31:38 +0300
From:      Alexey Matveichev <dlesha@7ka.mipt.ru>
To:        Mike Meyer <mwm@mired.org>
Cc:        questions@FreeBSD.ORG
Subject:   Re[2]: Problems compiling C programs made by f2c
Message-ID:  <134408116.20001212223138@7ka.mipt.ru>
In-Reply-To: <14901.28205.733756.261686@guru.mired.org>
References:  <14901.28205.733756.261686@guru.mired.org>

next in thread | previous in thread | raw e-mail | index | archive | help
>> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?134408116.20001212223138>