Open
Description
Check duplicate issues.
- Checked for duplicates
Description
Cling
is not seeing of the content of math.h
on MacOS.
Reproducer
With the file header.h
#include <math.h>
void func()
{
float a = 0, b = 0, c = 0;
__sincospif(a, &b, &c);
}
the file compiles:
clang++ -c header.h
clang: warning: treating 'c-header' input as 'c++-header' when in C++ mode, this behavior is deprecated [-Wdeprecated]
but fails to be parsed by Cling
(well rootcling
)
rootcling -f dict.cxx header.h
In file included from input_line_8:3:
header.h:6:4: error: use of undeclared identifier '__sincospif'
__sincospif(a, &b, &c);
^
Error: rootcling: compilation failure (dict51adc8b8cb_dictUmbrella.h)
ROOT version
Tested on master likely also on older releases.
Installation method
manual build and/or spack
Operating system
MacOS
Additional context
No response