lua---imgraph icon indicating copy to clipboard operation
lua---imgraph copied to clipboard

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

Open fabvio opened this issue 7 years ago • 0 comments

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)

fabvio avatar Oct 27 '17 17:10 fabvio