Surface-Heat-Diffuse-Skinning icon indicating copy to clipboard operation
Surface-Heat-Diffuse-Skinning copied to clipboard

Error: 'M_PI' was not declared in this scope

Open larinius opened this issue 2 years ago • 1 comments

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?

larinius avatar Mar 27 '22 13:03 larinius

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

meshonline avatar Mar 28 '22 00:03 meshonline