openframeworks / openFrameworks

openFrameworks is a community-developed cross platform toolkit for creative coding in C++.
http://openframeworks.cc
Other
9.83k stars 2.56k forks source link

math PI define issue #7983

Closed liquidzym closed 1 month ago

liquidzym commented 1 month ago

really not too sure what's causing this, got lots of PI and DEG_TO_RAD error issue after using the nightly build vs version,does it happen to anyone? vs2022 ide QQ截图20240521190546 QQ截图20240521190556

dimitre commented 1 month ago

it should be working. I imagine this is ofxCv addon. which example are you building? I'll check if the right includes are being used

artificiel commented 1 month ago

@liquidzym also during a moment an extra semi-colon found it's way in the macros https://github.com/openframeworks/openFrameworks/pull/7958/files and could have produced your problem, but the fix was merged last week — make ensure you have the very latest from git.

liquidzym commented 1 month ago

@artificiel ok, i see,its working now after grab the latest nightly version, thank you @dimitre