info-inventor
[Top] [All Lists]

Re: compiling errors from mathcalls.h

To: Jeremy Buchmann <buchmann@xxxxxxxxxx>
Subject: Re: compiling errors from mathcalls.h
From: Alexandre Naaman <naaman@xxxxxxxxxxxxxxxxxxxx>
Date: Wed, 16 Aug 2000 23:53:38 -0700
Cc: info-inventor@xxxxxxxxxxx
In-reply-to: <200008170649.XAA14514@xxxxxxxxxxxxxxxx>
Sender: owner-inventor@xxxxxxxxxxx
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@xxxxxxx - La conformité est la mort de l'âme.


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