Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 6 Sep 2015 00:21:48 +1000
From:      andrew clarke <mail@ozzmosis.com>
To:        "William A. Mahaffey III" <wam@hiwaay.net>
Cc:        FreeBSD Questions !!!! <freebsd-questions@freebsd.org>
Subject:   Re: GCC question
Message-ID:  <20150905142148.GA72328@ozzmosis.com>
In-Reply-To: <55EAF922.2020906@hiwaay.net>
References:  <55EAEE19.2060807@hiwaay.net> <55EAF922.2020906@hiwaay.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat 2015-09-05 09:21:32 UTC-0453, William A. Mahaffey III (wam@hiwaay.net) wrote:

> [wam@kabini1, TEST, 9:11:55am] 526 % gcc -o fpbl -I ../include/ fpbl.c
> /tmp//ccgFw6d7.o: In function `setupGrid':
> fpbl.c:(.text+0x21b): undefined reference to `pow'

You need to link the math library. See the pow man page.

gcc -o fpbl -I../include/ fpbl.c -lm



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