GCC question

William A. Mahaffey III wam at hiwaay.net
Sat Sep 5 14:27:18 UTC 2015

On 09/05/15 09:28, andrew clarke wrote:
> On Sat 2015-09-05 09:21:32 UTC-0453, William A. Mahaffey III (wam at hiwaay.net) wrote:
>> [wam at 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.

More information about the freebsd-questions mailing list