| 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@as2.lal.in2p3.fr> |
| 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> |
|---|---|---|
| ||
| Previous by Date: | Re: upgrading OpenInventor., Morten Eriksen |
|---|---|
| Next by Date: | Re: how to handle <cmath> and the like ?, Laurent Duflot |
| Previous by Thread: | how to handle <cmath> and the like ?, Laurent Duflot |
| Next by Thread: | Re: how to handle <cmath> and the like ?, Laurent Duflot |
| Indexes: | [Date] [Thread] [Top] [All Lists] |