Date: Sat, 5 Sep 2015 09:32:46 -0453.75 From: "William A. Mahaffey III" <wam@hiwaay.net> Cc: FreeBSD Questions !!!! <freebsd-questions@freebsd.org> Subject: Re: GCC question Message-ID: <55EAFBC4.8070303@hiwaay.net> In-Reply-To: <20150905142148.GA72328@ozzmosis.com> References: <55EAEE19.2060807@hiwaay.net> <55EAF922.2020906@hiwaay.net> <20150905142148.GA72328@ozzmosis.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On 09/05/15 09:28, andrew clarke wrote: > 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 > *Damn* what an idiot :-/ .... I usually use Makefiles for projects, however since this was/is a small bit of test code, no Makefile, just do it from the CLI, & I forgot the '-lm' .... It has been some months since I last messed w/ this (under linux) & I forgot that critical detail. I am comfortable classifying this as noise, sorry :-/ .... Thanks again & have a nice weekend. -- William A. Mahaffey III ---------------------------------------------------------------------- "The M1 Garand is without doubt the finest implement of war ever devised by man." -- Gen. George S. Patton Jr.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?55EAFBC4.8070303>