From owner-freebsd-questions@FreeBSD.ORG Tue Jan 17 15:30:30 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8D41F16A41F for ; Tue, 17 Jan 2006 15:30:30 +0000 (GMT) (envelope-from dan@dan.emsphone.com) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id F138243D45 for ; Tue, 17 Jan 2006 15:30:29 +0000 (GMT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.13.1/8.13.3) id k0HFTjKW092196; Tue, 17 Jan 2006 09:29:45 -0600 (CST) (envelope-from dan) Date: Tue, 17 Jan 2006 09:29:45 -0600 From: Dan Nelson To: Evandro Sestrem Message-ID: <20060117152945.GD10326@dan.emsphone.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-OS: FreeBSD 5.4-STABLE X-message-flag: Outlook Error User-Agent: Mutt/1.5.11 Cc: freebsd-questions@freebsd.org Subject: Re: Lua 5.0 and FreeBSD 4.1 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 17 Jan 2006 15:30:30 -0000 In the last episode (Jan 17), Evandro Sestrem said: > I'm trying compile a project using Lua 5.0 (www.lua.org) in FreePascal > (2.0.2 [2005/11/17] for i386) in a FreeBSD 4.1. > > The Lua 5.0 is correctly installed. > > It compiles ok, but when it is linking I got these errors: > > /usr/local/lib//liblualib.a(lmathlib.o): In function 'math_sin': lmathlib.o(.text+0x52): undefined reference to 'sin' > /usr/local/lib//liblualib.a(lmathlib.o): In function 'math_cos': lmathlib.o(.text+0x8e): undefined reference to 'cos' > /usr/local/lib//liblualib.a(lmathlib.o): In function 'math_tan': lmathlib.o(.text+0xca): undefined reference to 'tan' > > In what version of FreeBSD (or libc) these functions (sin, cos, tan, > ...) were implemented? Math functions are in libm. Add -lm to your link line. -- Dan Nelson dnelson@allantgroup.com