Math Library for Corecdp
- This topic has 1 reply, 2 voices, and was last updated 11 years, 2 months ago by .
Viewing 2 posts - 1 through 2 (of 2 total)
Viewing 2 posts - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.
Home › Forums › MultiConnect OCG › Math Library for Corecdp
Does CoreCDP 2.2.2 include a math library? I’m trying to compile an application for the OCG-E that uses functions like sin and cos, but I get undefined references during the link stage. I’m a relative newbie to Linux, and to CoreCDP especially, and am not sure how to go about adding a math library to CoreCDP if needed.
Thanks!
Hi Greg,
The Standard C++ Library contains definitions for many common mathematical operations and transformations. Here is a link to the reference:
You should just need to add the line #include <cmath>
to all relevant files in your project to resolve the linker issue. You might want to double check that your usage of the math functions matches the function definitions as well, so that you don’t run into any other compiler errors.
I hope this resolves your issue!
-Mike