Date: Sun, 25 Dec 2005 19:16:38 -0800 (PST) From: TV JOE <osastw@yahoo.com> To: freebsd-questions@freebsd.org Subject: Compiling linux applications Message-ID: <20051226031638.64935.qmail@web35701.mail.mud.yahoo.com>
next in thread | raw e-mail | index | archive | help
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'. Additionally there is a timer program that creates this compile error GC.c: In function `gettime': GC.c:252: error: storage size of 'ltim' isn't known Here is gettime /********************************************************************/ // Functions start here. /********************************************************************/ // Function to read system time. Only used for testing execution speed. long int gettime(void) { struct timeval ltim; gettimeofday(<im, NULL); return (((long int)ltim.tv_sec)*((long int)(1000000))+((long int)ltim.tv_usec)); } I'm compiling on a 5.3 box. Thanks for any help, --------------------------------- Yahoo! for Good - Make a difference this year.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20051226031638.64935.qmail>