oransel / node-talib

A technical analysis library for node.js
GNU Lesser General Public License v3.0
904 stars 149 forks source link

error: missing binary operator before token "(" #64

Closed unknownMarty closed 6 years ago

unknownMarty commented 6 years ago

Hi,

Love your project I'm trying to install on MacOS High Sierra with version 10.13.3

> talib@1.0.4 install /Users/martijnmellema/Documents/Development/misc/gekko/node_modules/talib
> node ./src/lib/build.js && node-gyp configure && node-gyp build

building talib functions...
cd ta_common; /Applications/Xcode.app/Contents/Developer/usr/bin/make
gcc -c -pipe -fPIC -Wall -W -O2 -fno-strict-aliasing -DTA_SINGLE_THREAD -march=x86-64 -m64 -D__64BIT__  -I../../../../../src/ta_common -I../../../../../include -o ../../../../../temp/csr/ta_global.o ../../../../../src/ta_common/ta_global.c
 In file included from /usr/include/Availability.h:194:0,
                 from /usr/include/stdlib.h:61,
                 from ../../../../../src/ta_common/ta_global.c:58:
/usr/include/AvailabilityInternal.h:25584:74: error: missing binary operator before token "("
 #if defined(__has_feature) && defined(__has_attribute) && __has_attribute(availability)
                                                                          ^
In file included from /usr/include/stdlib.h:61:0,
                 from ../../../../../src/ta_common/ta_global.c:58:
/usr/include/Availability.h:387:74: error: missing binary operator before token "("
 #if defined(__has_feature) && defined(__has_attribute) && __has_attribute(availability)
                                                                          ^
make[1]: *** [../../../../../temp/csr/ta_global.o] Error 1
make: *** [ta_common] Error 2
oransel commented 6 years ago

Please try the latest version. I works on my macOS tests.