FIAS . Impressum . Privacy

vc examples build error on mac os x

Tijskens Engelbert [please enable javascript to see the address]
Fri Jan 17 14:15:21 CET 2014


dear all

When building the examples the following error comes up

[ 65%] Building CXX object examples/polarcoord/CMakeFiles/example_polarcoord_scalar.dir/main.cpp.o
In file included from /Users/etijskens/Downloads/vc-vc/examples/polarcoord/main.cpp:26:
In file included from /Users/etijskens/Downloads/vc-vc/include/Vc/Vc:22:
In file included from /Users/etijskens/Downloads/vc-vc/include/Vc/vector.h:26:
In file included from /Users/etijskens/Downloads/vc-vc/scalar/vector.h:495:
/Users/etijskens/Downloads/vc-vc/scalar/math.h:77:7: error: no member named 'sincos' in the global namespace; did you mean '__sincos'?
    ::sincos(x.data(), &sin->data(), &cos->data());
    ~~^~~~~~
      __sincos
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include/math.h:647:29: note: '__sincos' declared here
__header_always_inline void __sincos(double __x, double *__sinp, double *__cosp) {

After replacing sincos with __sincos as suggested, everything builds fine, but maybe this breaks the code on other systems

i am compiling on a machine with Intel® Core™ i7-3615QM Processor and Mac OS X (maverick) using the clang 5.0 compiler.

kindest regards,
bert
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://compeng.uni-frankfurt.de/pipermail/vc/attachments/20140117/7068a1d6/attachment.html>


More information about the Vc mailing list
FIAS . Impressum . Privacy