#51: M_PI definition not always available to wavetoy-loopcontrol.c --------------------------------------------+------------------------------- Reporter: richard.oshaughnessy@… | Owner: eschnett Type: defect | Status: closed Priority: minor | Milestone: Component: Cactus | Version: ET_2010_06 Resolution: fixed | Keywords: c99 --------------------------------------------+------------------------------- Changes (by eschnett):
* status: assigned => closed * resolution: => fixed
Comment:
To my knowledge, M_PI is not part of ANSI C, but is part of POSIX. Some compilers disable POSIX compatibility by default. The compiler configurations that we distribute e.g. with the Simulation Factory http://simfactory.org/ should contain these settings. These may also be good examples for which settings your compiler requires.
I am not going to modify wavetoy-loopcontrol.c since there is nothing one can do in the source code (except not using M_PI); rather, the compiler options need to be changed.
trac@lists.einsteintoolkit.org