所以我正在尝试使用Binance API制作一个简单的机器人。它目前仅供我使用,我希望它能够分析市场,当某些模式完成后,它应该向我发送通知给电报频道。
我的大问题是我无法使API工作。我包括了所有的头文件和源文件。还添加了未包含在Binance文件中的openssl数据。
我的问题是在binacpp.cpp的最后几行中我得到了编译错误:
C:\Users\llbri\Desktop\binacpp-master\src\binacpp.cpp|1803|undefined reference to `_imp__curl_global_init'|
C:\Users\llbri\Desktop\binacpp-master\src\binacpp.cpp|1805|undefined reference to `_imp__curl_easy_init'|
C:\Users\llbri\Desktop\binacpp-master\src\binacpp.cpp|1809|undefined reference to `_imp__curl_easy_setopt'|
C:\Users\llbri\Desktop\binacpp-master\src\binacpp.cpp|1810|undefined reference to `_imp__curl_easy_setopt'|
C:\Users\llbri\Desktop\binacpp-master\src\binacpp.cpp|1811|undefined reference to `_imp__curl_easy_setopt'|
C:\Users\llbri\Desktop\binacpp-master\src\binacpp.cpp|1812|undefined reference to `_imp__curl_easy_setopt'|
C:\Users\llbri\Desktop\binacpp-master\src\binacpp.cpp|1818|undefined reference to `_imp__curl_slist_append'|
C:\Users\llbri\Desktop\binacpp-master\src\binacpp.cpp|1820|undefined reference to `_imp__curl_easy_setopt'|
C:\Users\llbri\Desktop\binacpp-master\src\binacpp.cpp|1826|undefined reference to `_imp__curl_easy_setopt'|
C:\Users\llbri\Desktop\binacpp-master\src\binacpp.cpp|1828|undefined reference to `_imp__curl_easy_setopt'|
C:\Users\llbri\Desktop\binacpp-master\src\binacpp.cpp|1831|undefined reference to `_imp__curl_easy_perform'|
C:\Users\llbri\Desktop\binacpp-master\src\binacpp.cpp|1838|undefined reference to `_imp__curl_easy_cleanup'|
C:\Users\llbri\Desktop\binacpp-master\src\binacpp.cpp|1840|undefined reference to `_imp__curl_global_cleanup'|
C:\Users\llbri\Desktop\binacpp-master\src\binacpp_utils.cpp|99|undefined reference to `EVP_sha256'|
C:\Users\llbri\Desktop\binacpp-master\src\binacpp_utils.cpp|99|undefined reference to `HMAC'|
obj\Debug\src\binacpp_utils.o||In function `Z6sha256B5cxx11PKc':|
C:\Users\llbri\Desktop\binacpp-master\src\binacpp_utils.cpp|108|undefined reference to `SHA256_Init'|
C:\Users\llbri\Desktop\binacpp-master\src\binacpp_utils.cpp|109|undefined reference to `SHA256_Update'|
C:\Users\llbri\Desktop\binacpp-master\src\binacpp_utils.cpp|110|undefined reference to `SHA256_Final'|
obj\Debug\src\binacpp_websocket.o||In function `ZN17BinaCPP_websocket8event_cbEP3lws20lws_callback_reasonsPvS3_j':|
C:\Users\llbri\Desktop\binacpp-master\src\binacpp_websocket.cpp|32|undefined reference to `lws_callback_on_writable'|
obj\Debug\src\binacpp_websocket.o||In function `ZN17BinaCPP_websocket4initEv':|
C:\Users\llbri\Desktop\binacpp-master\src\binacpp_websocket.cpp|89|undefined reference to `lws_create_context'|
obj\Debug\src\binacpp_websocket.o||In function `ZN17BinaCPP_websocket16connect_endpointEPFiRN4Json5ValueEEPKc':|
C:\Users\llbri\Desktop\binacpp-master\src\binacpp_websocket.cpp|113|undefined reference to `lws_canonical_hostname'|
C:\Users\llbri\Desktop\binacpp-master\src\binacpp_websocket.cpp|118|undefined reference to `lws_client_connect_via_info'|
obj\Debug\src\binacpp_websocket.o||In function `ZN17BinaCPP_websocket16enter_event_loopEv':|
C:\Users\llbri\Desktop\binacpp-master\src\binacpp_websocket.cpp|133|undefined reference to `lws_service'|
C:\Users\llbri\Desktop\binacpp-master\src\binacpp_websocket.cpp|139|undefined reference to `lws_context_destroy'|
||error: ld returned 1 exit status|
||=== Build failed: 25 error(s), 179 warning(s) (0 minute(s), 14 second(s)) ===|
正如你所知,我想运行示例文件,但我不明白为什么会出现这些错误。
我正在使用win64和code :: blocks IDE
我会提出任何建议
自从AD