From owner-freebsd-questions@FreeBSD.ORG Mon Dec 26 03:16:48 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 6EC7D16A41F for ; Mon, 26 Dec 2005 03:16:48 +0000 (GMT) (envelope-from osastw@yahoo.com) Received: from web35701.mail.mud.yahoo.com (web35701.mail.mud.yahoo.com [66.163.179.155]) by mx1.FreeBSD.org (Postfix) with SMTP id 7A6EF43D5D for ; Mon, 26 Dec 2005 03:16:39 +0000 (GMT) (envelope-from osastw@yahoo.com) Received: (qmail 64940 invoked by uid 60001); 26 Dec 2005 03:16:38 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=Sts2wkY3n+vCkCWcFG+dI/tHFODdhOOm0aRn+Q08AC1xZUCDvb1eHdbXlzYyG+ubl3zNgJq11FmhXJY/p2d1a08cA9SDvgGcYFV8nf7ejoNeym1sWcGbpS4v7ovvzVs/mcvEGWJjo66vET471xUAPXZAo9xGgq/U//0MlF7odJk= ; Message-ID: <20051226031638.64935.qmail@web35701.mail.mud.yahoo.com> Received: from [66.209.15.234] by web35701.mail.mud.yahoo.com via HTTP; Sun, 25 Dec 2005 19:16:38 PST Date: Sun, 25 Dec 2005 19:16:38 -0800 (PST) From: TV JOE To: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: 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 03:16:48 -0000 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.