Compiling linux applications
    Malcolm Kay 
    malcolm.kay at internode.on.net
       
    Mon Dec 26 06:04:45 PST 2005
    
    
  
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
    
    
More information about the freebsd-questions
mailing list