Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fake controller issue #7

Closed
anakhalil opened this issue Jul 24, 2019 · 2 comments
Closed

Fake controller issue #7

anakhalil opened this issue Jul 24, 2019 · 2 comments

Comments

@anakhalil
Copy link

Hi,

I got two errors when building the latest code:

'sin': is not a member of 'std'
'cos': is not a member of 'std'

I solved it by adding #include <cmath> to FakeController.cpp and FakeTracker.cpp.

I thought this might be a bug as I am using the latest SDK, but I did not want to make a new branch for two lines.

@gabriel-combe
Copy link

Indeed, I also had this error with the last SDK, however I solved it by removing "std::" in front of the cos and the sin.
It seems that in the new versions of c++, the trigonometric functions are pre-integrated.

@terminal29
Copy link
Owner

Strange, for me it builds fine without it. Thanks for catching that though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants