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

Re: compiling errors from mathcalls.h



On Wed, 16 Aug 2000, Jeremy Buchmann wrote:

Hi Jeremy,

> Hi, I've just recently installed OpenInventor 2.1 on my Linux system (SuSE
> 6.3, glibc 2.1.2) and when I try to compile an application that uses OI, I 
> get the following errors:
> 
> /usr/include/bits/mathcalls.h:54: declaration of C function `float
> acos(float)' conflicts with
> /usr/include/bits/mathcalls.h:54: previous declaration `double
> acos(double)' here

Try adding -D_POSIX_SOURCE and -D_XOPEN_SOURCE to your compile line (under
Linux) and it should work fine.

This should probably make it's way into a FAQ somewhere ...

A+,

Alexandre.

--
Alexandre Naaman - naaman@sgi.com - La conformité est la mort de l'âme.