binance-exchange / binacpp

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

-ljsoncpp not found #8

Closed Micha1990 closed 6 years ago

Micha1990 commented 6 years ago

Hi, I downloaded the project and wanted to try the examples, but the terminal sais: /usr/bin/ld: cannot find -ljsoncpp. What can I do?

tensaix2j commented 6 years ago

try removing it and run make again.

drvpn commented 6 years ago

I am experiencing the same problems getting the example to compile (see paste of error below). I see the previous suggestion was to "try removing it and run make again" what are you suggesting I remove?

Thanks!

/usr/bin/ld: cannot find -ljsoncpp collect2: error: ld returned 1 exit status Makefile:25: recipe for target 'example' failed make: *** [example] Error 1

tensaix2j commented 6 years ago

yes. Just remove the -ljsoncpp from the line and try again.

tensaix2j commented 6 years ago

well it wasn't there originally until someone added it , see the following commit https://github.com/binance-exchange/binacpp/commit/71eaf491da18a733236a1f4d8e62e97909e0b324