From owner-freebsd-questions@FreeBSD.ORG Mon Dec 26 14:04:45 2005 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 4954E16A41F for ; Mon, 26 Dec 2005 14:04:45 +0000 (GMT) (envelope-from malcolm.kay@internode.on.net) Received: from smtp3.adl2.internode.on.net (smtp3.adl2.internode.on.net [203.16.214.203]) by mx1.FreeBSD.org (Postfix) with ESMTP id 51D9543D55 for ; Mon, 26 Dec 2005 14:04:44 +0000 (GMT) (envelope-from malcolm.kay@internode.on.net) Received: from alpha.home (ppp144-75.lns3.adl2.internode.on.net [59.167.144.75]) by smtp3.adl2.internode.on.net (8.12.9/8.12.6) with ESMTP id jBQE4fYr017546; Tue, 27 Dec 2005 00:34:42 +1030 (CST) (envelope-from malcolm.kay@internode.on.net) From: Malcolm Kay Organization: at home To: freebsd-questions@freebsd.org Date: Tue, 27 Dec 2005 00:34:36 +1030 User-Agent: KMail/1.8 References: <20051226031638.64935.qmail@web35701.mail.mud.yahoo.com> <200512270019.49456.malcolm.kay@internode.on.net> In-Reply-To: <200512270019.49456.malcolm.kay@internode.on.net> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200512270034.36308.malcolm.kay@internode.on.net> Cc: TV JOE Subject: Re: Compiling linux applications 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: Mon, 26 Dec 2005 14:04:45 -0000 On Tue, 27 Dec 2005 12:19 am, Malcolm Kay wrote: > On Mon, 26 Dec 2005 01:46 pm, TV JOE wrote: > > Hi, > > > > I've a C program written for Suse linux. I'm having minor > > problems compiling. First is that the cexp (complex > > exponent) is not available in /usr/include/math.h. Is it > > possible to add on a library that includes this function? I > > compile as 'gcc -lm program.c'. I should have noticed before -- you are in danger of of required parts of the library not being loaded unless you place the '-lm' at the end of the command line (unlike most unix utilities/applications). Malcolm