AlexanderPinkerton / PoloniexAPI-Wrapper

A C++ wrapper for the Poloniex crypto-currency exchange using cpprest library from microsoft. (Formerly casablanca)
4 stars 2 forks source link

build error on ubuntu16.04 with boost #1

Open b1u3h4t opened 7 years ago

b1u3h4t commented 7 years ago

Linking CXX executable PoloniexAPI /usr/bin/ld: CMakeFiles/PoloniexAPI.dir/PoloniexClient.cpp.o: undefined reference to symbol '_ZN5boost6system15system_categoryEv' /usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/libboost_system.so: error adding symbols: DSO missing from command line

AlexanderPinkerton commented 7 years ago

Looks like this is caused by libboost_system missing from the command line ill look into improving my CMakeLists.txt

Also, make sure that if you are building in 64 bit, libcpprest should also be 64bit.

I gathered this information from http://stackoverflow.com/questions/38650981/undefined-reference-to-symbol-zn5boost6system15system-categoryev-error

Let me know if any of this works.

b1u3h4t commented 7 years ago

I solve the problem later, but it has a new problem. root@iZm5eb2qyfbb0w47hzoadjZ:/srv/ftp/upload/poloniex/PoloniexAPI-Wrapper/build# ldd PoloniexAPI linux-vdso.so.1 => (0x00007ffcfe7fb000) libcpprest.so.2.9 => /usr/local/lib/libcpprest.so.2.9 (0x00007f16a6c4f000) libpthread.so.0 => /usr/local/lib/libpthread.so.0 (0x00007f16a6a31000) libboost_system-mt.so.1.61.0 => /srv/ftp/upload/boost_1_61_0/stage/lib/libboost_system-mt.so.1.61.0 (0x00007f16a682d000) libssl.so.1.0.0 => /srv/ftp/upload/openssl-1.0.2k/libssl.so.1.0.0 (0x00007f16a65ba000) libcrypto.so.1.0.0 => /srv/ftp/upload/openssl-1.0.2k/libcrypto.so.1.0.0 (0x00007f16a6160000) libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f16a5dbf000) libgcc_s.so.1 => /usr/local/lib/libgcc_s.so.1 (0x00007f16a5ba9000) libc.so.6 => /usr/local/lib/libc.so.6 (0x00007f16a57df000) /lib64/ld-linux-x86-64.so.2 (0x000055fe88dfa000) libdl.so.2 => /usr/local/lib/libdl.so.2 (0x00007f16a55db000) libm.so.6 => /usr/local/lib/libm.so.6 (0x00007f16a52d1000) root@iZm5eb2qyfbb0w47hzoadjZ:/srv/ftp/upload/poloniex/PoloniexAPI-Wrapper/build# ./PoloniexAPI Error in SSL handshake Can you help me fix it out ? Thanks!

Po0ria commented 5 years ago

I solve the problem later, but it has a new problem. root@iZm5eb2qyfbb0w47hzoadjZ:/srv/ftp/upload/poloniex/PoloniexAPI-Wrapper/build# ldd PoloniexAPI linux-vdso.so.1 => (0x00007ffcfe7fb000) libcpprest.so.2.9 => /usr/local/lib/libcpprest.so.2.9 (0x00007f16a6c4f000) libpthread.so.0 => /usr/local/lib/libpthread.so.0 (0x00007f16a6a31000) libboost_system-mt.so.1.61.0 => /srv/ftp/upload/boost_1_61_0/stage/lib/libboost_system-mt.so.1.61.0 (0x00007f16a682d000) libssl.so.1.0.0 => /srv/ftp/upload/openssl-1.0.2k/libssl.so.1.0.0 (0x00007f16a65ba000) libcrypto.so.1.0.0 => /srv/ftp/upload/openssl-1.0.2k/libcrypto.so.1.0.0 (0x00007f16a6160000) libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f16a5dbf000) libgcc_s.so.1 => /usr/local/lib/libgcc_s.so.1 (0x00007f16a5ba9000) libc.so.6 => /usr/local/lib/libc.so.6 (0x00007f16a57df000) /lib64/ld-linux-x86-64.so.2 (0x000055fe88dfa000) libdl.so.2 => /usr/local/lib/libdl.so.2 (0x00007f16a55db000) libm.so.6 => /usr/local/lib/libm.so.6 (0x00007f16a52d1000) root@iZm5eb2qyfbb0w47hzoadjZ:/srv/ftp/upload/poloniex/PoloniexAPI-Wrapper/build# ./PoloniexAPI Error in SSL handshake Can you help me fix it out ? Thanks!

Can you elaborate how did you fix it?