Skip to content

Windows compilation #35

@francoisbonneau

Description

@francoisbonneau

On Windows with MSVC, the constants M_PI, M_E, etc. are not defined by default in like they are on GCC/Clang.

Varous fix exist, one is to add

#define _USE_MATH_DEFINES
before:
#include <math.h>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions