Math Library for Corecdp

Home Forums MultiConnect OCG Math Library for Corecdp

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #4838
    Greg Ludewig
    Participant

    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!

    #4840
    Mike Fiore
    Blocked

    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

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.