Closed seemsindie closed 8 years ago
Same here, using Ubuntu 14.04 with all dependencies installed.
same here again - ubuntu 14.04
Why don't one of you put this in an appropriate place and submit a pull request?
#ifndef M_PI
#define M_PI 3.14159265358979323846
#endif
it looks like its a c99 thing, i think adding gcc -lm will fix it .. testing it now
yeah POSIX doesnt include M_PI, we need a #define _GNU_SOURCE added to the files that need M_PI. I'll see if i can get a PR together
I see this in the GLFW files that use M_PI, probably an appropriate place to add another...
#if defined(_MSC_VER)
// Make MS math.h define M_PI
#define _USE_MATH_DEFINES
#endif
yeah im basically changing that to `
// Make MS math.h define M_PI
`
edit: ...sorry i cant get github to format the code properly with linebreaks
Hello, i am getting this error when running make:
I am using arch linux, i have cmake, make, glfw, tried to install other deps... Any idea why is failing?