Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 27 Dec 2005 00:34:36 +1030
From:      Malcolm Kay <malcolm.kay@internode.on.net>
To:        freebsd-questions@freebsd.org
Cc:        TV JOE <osastw@yahoo.com>
Subject:   Re: Compiling linux applications
Message-ID:  <200512270034.36308.malcolm.kay@internode.on.net>
In-Reply-To: <200512270019.49456.malcolm.kay@internode.on.net>
References:  <20051226031638.64935.qmail@web35701.mail.mud.yahoo.com> <200512270019.49456.malcolm.kay@internode.on.net>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200512270034.36308.malcolm.kay>