I encountered the error 'error C2065: 'M_PI_2': undeclared identifier' when compiling version 2.1.0 on Windows 10 64-bit.
I was able to resolve the issue by adding the following lines to the CMakeLists.txt file in the package's Windows folder:
if (MSVC) #line 24
add_definitions (-D_CRT_SECURE_NO_WARNINGS)
add_definitions (-D_USE_MATH_DEFINES) #add
endif()
Could you please confirm if this is the correct solution?
I encountered the error 'error C2065: 'M_PI_2': undeclared identifier' when compiling version 2.1.0 on Windows 10 64-bit. I was able to resolve the issue by adding the following lines to the CMakeLists.txt file in the package's Windows folder:
Could you please confirm if this is the correct solution?