[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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



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@sgi.com - La conformite est la mort de l'ame.