info-inventor
[Top] [All Lists]

Re: Problem with single-precision math functions and SbBasic.h on Linux

To: Jean-Francois Panisset <panisset@xxxxxxxxxxxx>
Subject: Re: Problem with single-precision math functions and SbBasic.h on Linux
From: Alexandre Naaman <naaman@xxxxxxxxxxxxxxxxxxxx>
Date: Fri, 18 Aug 2000 21:57:54 -0700
Cc: info-inventor@xxxxxxxxxxx
In-reply-to: <200008190345.XAA10807@xxxxxxxxxxxxxxxxxxxxxxxx>
Sender: owner-inventor@xxxxxxxxxxx
On Fri, 18 Aug 2000, Jean-Francois Panisset wrote:

Salut Jean-Francois,

 Add -D_POSIX_SOURCE and -D_XOPEN_SOURCE to your compile line and it will
compile just fine.

[clip]

> /usr/include/bits/mathcalls.h:54: declaration of C function `float
> acos(float)' conflicts with

[clip]

> 
> In fact, Linux does have single-precision math functions, so this is
> what is causing problems. In this case, the fix appears to be simple:
> 
> #if !defined(__sgi) && !defined(__linux)
> 
> seems to do the trick.

Merci, I'll check it out this week-end. (note that some of these defines
are found elsewhere in the .c++ files and should be dealt with too)

A+,

Alexandre.

--
Alexandre Naaman - naaman@xxxxxxx - La conformite est la mort de l'ame.



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