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

how to handle <cmath> and the like ?

To: info-inventor-dev@xxxxxxxxxxx
Subject: how to handle <cmath> and the like ?
From: Laurent Duflot <duflot@xxxxxxxxxxxx>
Date: Wed, 30 Aug 2000 18:20:23 +0200 (MET DST)
Sender: owner-info-inventor-dev@xxxxxxxxxxx

   Hi,

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. 

   Any comment ?


      Laurent



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