Skip to content

Build error in MacOS Sierra: expected member name or ';' after declaration specifiers #10

@fabvio

Description

@fabvio

I tried to build the module on my Macbook Pro running MacOS Sierra 10.12.6. I got a build error returning these logs:

error: expected member name or ';' after declaration specifiers
error: no member named 'min_exponent' in 'numeric_limits<_Tp>'
error: no member named 'min_exponent' in 'numeric_limits<const type-parameter-0-0>'
error: no member named 'min_exponent' in 'numeric_limits<volatile type-parameter-0-0>'
error: no member named 'min_exponent' in 'numeric_limits<const volatile type-parameter-0-0>'

The bug is caused by #define epsilon 0.00001, defined in graph_utils.h, which conflicts with a macro in the llvm compiler infrastructure included in MacOS. I fixed the bug and opened a pull request.
However, the project may be discontinued do I don't know if my pull request will ever be merged. If needed, the code is in my forked repo. I'll also update the .rockspec file in order to download the code in my repo in the next commit (which should not be merged)

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