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

M_PI undeclared #5

Closed
bduhan opened this issue Jan 2, 2017 · 1 comment
Closed

M_PI undeclared #5

bduhan opened this issue Jan 2, 2017 · 1 comment

Comments

@bduhan
Copy link

bduhan commented Jan 2, 2017

Great project, thank you!

In Visual Studio Community Edition 2015 I get multiple errors stating that M_PI is undeclared in ofxNeoPixelRing.cpp. Everything works if I directly include math.h like this:

#define _USE_MATH_DEFINES
#include <math.h>

I did not submit a pull request because this has not been tested on Linux and OSX yet and it probably makes more sense to change this elsewhere.

@DHaylock
Copy link
Owner

DHaylock commented Jan 4, 2017

Hi @bduhan,

I've added the maths header works fine with linux and OSX.

Cheers for spotting this.

D

@DHaylock DHaylock closed this as completed Jan 4, 2017
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

2 participants