Surface-Heat-Diffuse-Skinning
Surface-Heat-Diffuse-Skinning copied to clipboard
Error: 'M_PI' was not declared in this scope
Build Error:
.... MINGW64 .../Surface-Heat-Diffuse-Skinning/src
$ g++ *.cpp -static-libgcc -static-libstdc++ -std=c++11 -Wl,-Bstatic -lstdc++ -lpthread -Wl,-Bdynamic -O2 -ftree-vectorize -fopt-info-vec -o shd
main.cpp:34:67: error: 'M_PI' was not declared in this scope
34 | std::uniform_real_distribution<float> mt_dist_00_2PI(0.0f, 2.0f * M_PI);
| ^~~~
tribox.cpp:178:5: optimized: basic block part vectorized using 16 byte vectors
Why not provide already built files?
I have fixed the undefined M_PI bug on Windows, you can re-download the source code, or add a line in main.cpp: #define M_PI 3.14159265358979323846