info-inventor-dev
[Top] [All Lists]

Re: how to handle <cmath> and the like ?

To: Laurent Duflot <duflot@xxxxxxxxxxxx>
Subject: Re: how to handle <cmath> and the like ?
From: Kiril Vidimce <vkire@xxxxxxxxx>
Date: Wed, 30 Aug 2000 11:31:38 -0700 (PDT)
Cc: info-inventor-dev@xxxxxxxxxxx
In-reply-to: <Pine.OSF.4.21.0008301812250.13679-100000@xxxxxxxxxxxxxxxx>
Sender: owner-info-inventor-dev@xxxxxxxxxxx
On Wed, 30 Aug 2000, Laurent Duflot wrote:
> in porting to other architectures, how can I handle the use of <cmath> and the
> like ? It seems that I need to use them on Linux with the KAI C++ compiler.
> 
> 
> I propose to use 
> 
> #ifdef HAS_CSTDLIB
> #include <cstdlib>
> #endif
> 
> #ifdef HAS_CMATH
> #include <cmath>
> #endif
> 
> and the HAS_XXXX should be set by the build system. 

Is this for *trunc() and the like?

You need to add -D_ISOC99_SOURCE to your compile line to pick up those 
without any changes to the source code.

KV
--
  ___________________________________________________________________
  Studio Tools                                        vkire@xxxxxxxxx
  Pixar Animation Studios                        http://www.pixar.com/


<Prev in Thread] Current Thread [Next in Thread>