From owner-freebsd-questions@freebsd.org Sat Sep 5 14:21:53 2015 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 37B4E9C937D for ; Sat, 5 Sep 2015 14:21:53 +0000 (UTC) (envelope-from mail@ozzmosis.com) Received: from homiemail-a79.g.dreamhost.com (sub5.mail.dreamhost.com [208.113.200.129]) by mx1.freebsd.org (Postfix) with ESMTP id 20506F33 for ; Sat, 5 Sep 2015 14:21:52 +0000 (UTC) (envelope-from mail@ozzmosis.com) Received: from homiemail-a79.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a79.g.dreamhost.com (Postfix) with ESMTP id ED7507D406F; Sat, 5 Sep 2015 07:21:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=ozzmosis.com; h=date:from :to:cc:subject:message-id:references:mime-version:content-type: in-reply-to; s=ozzmosis.com; bh=0y7970+lbFBG+ACVF8ZZyUI71DI=; b= US62QIEDlF7WfOI2s0rOpZdfrzFIdZ5x8Zwp3lfFDd0oKpDY6HVhOcAh0rSnJtIO wBwfB5JniHxnh8vbvNjVImZvNDPdCJweaYGYI0T05O6hFyUxOdft7+Amk7mlFzMa iqXOsgc5hkaBQEYly2OfIfxXzJzfcSZLYpicw/wGRxU= Received: from blizzard.ozzmosis.com (203-206-116-141.dyn.iinet.net.au [203.206.116.141]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: relay@ozzmosis.com) by homiemail-a79.g.dreamhost.com (Postfix) with ESMTPSA id B4BD87D406E; Sat, 5 Sep 2015 07:21:51 -0700 (PDT) Received: by blizzard.ozzmosis.com (Postfix, from userid 1001) id 02847393; Sun, 6 Sep 2015 00:21:48 +1000 (AEST) Date: Sun, 6 Sep 2015 00:21:48 +1000 From: andrew clarke To: "William A. Mahaffey III" Cc: FreeBSD Questions !!!! Subject: Re: GCC question Message-ID: <20150905142148.GA72328@ozzmosis.com> References: <55EAEE19.2060807@hiwaay.net> <55EAF922.2020906@hiwaay.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <55EAF922.2020906@hiwaay.net> User-Agent: Mutt/1.5.23 (2014-03-12) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 05 Sep 2015 14:21:53 -0000 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