binance-exchange / binacpp

Binance C++ library
MIT License
212 stars 108 forks source link

Doesn't build #2

Closed kiwec closed 7 years ago

kiwec commented 7 years ago
cd src
make

Outputs :

g++ -c binacpp_utils.cpp -fPIC   -o ../lib/libbinacpp/lib/binacpp_utils.o
In file included from binacpp_utils.cpp:2:0:
binacpp_utils.h: In function ‘bool file_exists(const string&)’:
binacpp_utils.h:36:35: error: ‘F_OK’ was not declared in this scope
    return ( access( name.c_str(), F_OK ) != -1 );
                                   ^~~~
binacpp_utils.h:36:13: error: ‘access’ was not declared in this scope
    return ( access( name.c_str(), F_OK ) != -1 );
             ^~~~~~
binacpp_utils.h:36:13: note: suggested alternative: ‘class’
    return ( access( name.c_str(), F_OK ) != -1 );
             ^~~~~~
             class
make: *** [Makefile:51: ../lib/libbinacpp/lib/binacpp_utils.o] Error 1

Arch linux, with libcurl and libwebsockets already installed from AUR (matching versions).

tensaix2j commented 7 years ago

try again with this fix https://github.com/binance-exchange/binacpp/commit/a9627fcee52771dd03e7ae467657a5710e93ed98