Date: Thu, 3 Dec 1998 00:36:35 +0100 (MET) From: Jean-Marc Zucconi <jmz@FreeBSD.ORG> To: t.e.luginbuhl@ieee.org Cc: questions@FreeBSD.ORG Subject: Re: Calling LAPACK library from C in 3.0-RELEASE Message-ID: <199812022336.AAA09958@qix.jmz.org> In-Reply-To: <3665CA3F.259C3CB@science-guy.npt.nuwc.navy.mil> (message from Tod Luginbuhl on Wed, 02 Dec 1998 18:16:15 -0500)
next in thread | previous in thread | raw e-mail | index | archive | help
>>>>> Tod Luginbuhl writes:
> This is a multi-part message in MIME format.
> --------------8B5D41F2AA025F36B7C1DB63
> Content-Type: text/plain; charset=us-ascii
> Content-Transfer-Encoding: 7bit
> Hi,
> I have one machine running 2.2.7-STABLE (last installworld on 25 Sept),
> and on this maching, I have no problem calling the LAPACK library from C
> (LAPACK etc built using ports). I recently built a two processor system
> using the ASUS P2B-DS mother board which runs 3.0-RELEASE from the
> Walnut Creek CDs. When I try to compile a program that works in STABLE
> under 3.0-RELEASE, I get the following error message:
> cc -g -L/usr/local/lib -o stupid stupid.o -lm -lblas -llapack -lf2c
> /usr/lib/libf2c.so: undefined reference to `MAIN__'
> *** Error code 1
> Does anyone have any ideas why this is happening and how I might correct
> it? A source list for simple C program that demonstrates the problem
> is given below. I've also included the makefile. Please email me
> directly because I stopped subscribing to this list (when I finish my
> dissertation, I'll subscribe again). Thanks!
This is fixed in -current. Add the following to your C code (or add
it to libf2c):
MAIN__ () {}
Jean-Marc
--
Jean-Marc Zucconi PGP Key: finger jmz@FreeBSD.ORG
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?199812022336.AAA09958>
