headshake/src/cameracommands/touchdowncameracommand.cpp:71:19: error: call to 'abs' is ambiguous
mVspeed = std::abs(mVspeed);
^~~~
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/stdlib.h:132:6: note: candidate function
int abs(int) pure2;
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/stdlib.h:111:44: note: candidate function
inline _LIBCPP_INLINE_VISIBILITY long abs( long __x) _NOEXCEPT {return labs(x);}
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/stdlib.h:113:44: note: candidate function
inline _LIBCPP_INLINE_VISIBILITY long long abs(long long __x) _NOEXCEPT {return llabs(__x);}
^
headshake/src/cameracommands/touchdowncameracommand.cpp:78:64: error: no member named 'sin' in namespace 'std'; did you mean 'sinf'?
touchdownshake = (mVspeed mResponse / 100.0f) (std::sin(currentTime PI 7.0f) / (currentTime 50.0f));
^~~~
sinf
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/math.h:328:14: note: 'sinf' declared here
extern float sinf(float);
^
headshake/src/cameracommands/touchdowncameracommand.cpp:79:59: error: no member named 'sin' in namespace 'std'; did you mean 'sinf'?
fastshake = (mVspeed mResponse / 100.0f) (std::sin(currentTime 50.0f) / (currentTime * 50.0f));
^~~~
sinf
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/math.h:328:14: note: 'sinf' declared here
extern float sinf(float);
^
4 warnings and 3 errors generated.
I see compile errors on Mac after latest commit:
headshake/src/cameracommands/touchdowncameracommand.cpp:71:19: error: call to 'abs' is ambiguous mVspeed = std::abs(mVspeed); ^
~~~ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/stdlib.h:132:6: note: candidate function int abs(int) pure2; ^ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/stdlib.h:111:44: note: candidate function inline _LIBCPP_INLINE_VISIBILITY long abs( long __x) _NOEXCEPT {return labs(x);} ^ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/stdlib.h:113:44: note: candidate function inline _LIBCPP_INLINE_VISIBILITY long long abs(long long __x) _NOEXCEPT {return llabs(__x);} ^ headshake/src/cameracommands/touchdowncameracommand.cpp:78:64: error: no member named 'sin' in namespace 'std'; did you mean 'sinf'? touchdownshake = (mVspeed mResponse / 100.0f) (std::sin(currentTime PI 7.0f) / (currentTime 50.0f)); ^~~~ sinf /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/math.h:328:14: note: 'sinf' declared here extern float sinf(float); ^ headshake/src/cameracommands/touchdowncameracommand.cpp:79:59: error: no member named 'sin' in namespace 'std'; did you mean 'sinf'? fastshake = (mVspeed mResponse / 100.0f) (std::sin(currentTime 50.0f) / (currentTime * 50.0f)); ^~~~ sinf /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/math.h:328:14: note: 'sinf' declared here extern float sinf(float); ^ 4 warnings and 3 errors generated.