История изменений
Исправление wolverin, (текущая версия) :
zvezdochiot
ну как бэ обычный выхлоп о не найденном описании
при динамической линковке ошибок нет
wolverin$ g++ -o AddWork ./libssh2-1.8.2/src/.libs/libssh2.a AddWork.cpp -L./ibpp/core -lfbclient -libpp -DIBPP_LINUX
/tmp/ccGeFPjG.o: In function `CSSH2::ErrorSSH(char const*, int)':
AddWork.cpp:(.text._ZN5CSSH28ErrorSSHEPKci[_ZN5CSSH28ErrorSSHEPKci]+0x2e): undefined reference to `libssh2_session_last_error'
AddWork.cpp:(.text._ZN5CSSH28ErrorSSHEPKci[_ZN5CSSH28ErrorSSHEPKci]+0x38): undefined reference to `libssh2_version'
/tmp/ccGeFPjG.o: In function `CSSH2::~CSSH2()':
AddWork.cpp:(.text._ZN5CSSH2D2Ev[_ZN5CSSH2D5Ev]+0x7a): undefined reference to `libssh2_channel_free'
AddWork.cpp:(.text._ZN5CSSH2D2Ev[_ZN5CSSH2D5Ev]+0xa7): undefined reference to `libssh2_session_disconnect_ex'
AddWork.cpp:(.text._ZN5CSSH2D2Ev[_ZN5CSSH2D5Ev]+0xb7): undefined reference to `libssh2_session_free'
/tmp/ccGeFPjG.o: In function `CSSH2::CreateTunnel(char const*)':
AddWork.cpp:(.text._ZN5CSSH212CreateTunnelEPKc[_ZN5CSSH212CreateTunnelEPKc]+0x183): undefined reference to `libssh2_session_init_ex'
AddWork.cpp:(.text._ZN5CSSH212CreateTunnelEPKc[_ZN5CSSH212CreateTunnelEPKc]+0x1cc): undefined reference to `libssh2_session_startup'
AddWork.cpp:(.text._ZN5CSSH212CreateTunnelEPKc[_ZN5CSSH212CreateTunnelEPKc]+0x23b): undefined reference to `libssh2_userauth_publickey_fromfile_ex'
/tmp/ccGeFPjG.o: In function `CSSH2::ConnectTunnel()':
AddWork.cpp:(.text._ZN5CSSH213ConnectTunnelEv[_ZN5CSSH213ConnectTunnelEv]+0xcf): undefined reference to `libssh2_channel_direct_tcpip_ex'
AddWork.cpp:(.text._ZN5CSSH213ConnectTunnelEv[_ZN5CSSH213ConnectTunnelEv]+0x128): undefined reference to `libssh2_session_set_blocking'
collect2: error: ld returned 1 exit status
Исходная версия wolverin, :
zvezdochiot
ну как бэ обычный выхлоп о не найденном описании при динамической линковке ошибок нет
wolverin$ g++ -o AddWork ./libssh2-1.8.2/src/.libs/libssh2.a AddWork.cpp -L./ibpp/core -lfbclient -libpp -DIBPP_LINUX
/tmp/ccGeFPjG.o: In function `CSSH2::ErrorSSH(char const*, int)':
AddWork.cpp:(.text._ZN5CSSH28ErrorSSHEPKci[_ZN5CSSH28ErrorSSHEPKci]+0x2e): undefined reference to `libssh2_session_last_error'
AddWork.cpp:(.text._ZN5CSSH28ErrorSSHEPKci[_ZN5CSSH28ErrorSSHEPKci]+0x38): undefined reference to `libssh2_version'
/tmp/ccGeFPjG.o: In function `CSSH2::~CSSH2()':
AddWork.cpp:(.text._ZN5CSSH2D2Ev[_ZN5CSSH2D5Ev]+0x7a): undefined reference to `libssh2_channel_free'
AddWork.cpp:(.text._ZN5CSSH2D2Ev[_ZN5CSSH2D5Ev]+0xa7): undefined reference to `libssh2_session_disconnect_ex'
AddWork.cpp:(.text._ZN5CSSH2D2Ev[_ZN5CSSH2D5Ev]+0xb7): undefined reference to `libssh2_session_free'
/tmp/ccGeFPjG.o: In function `CSSH2::CreateTunnel(char const*)':
AddWork.cpp:(.text._ZN5CSSH212CreateTunnelEPKc[_ZN5CSSH212CreateTunnelEPKc]+0x183): undefined reference to `libssh2_session_init_ex'
AddWork.cpp:(.text._ZN5CSSH212CreateTunnelEPKc[_ZN5CSSH212CreateTunnelEPKc]+0x1cc): undefined reference to `libssh2_session_startup'
AddWork.cpp:(.text._ZN5CSSH212CreateTunnelEPKc[_ZN5CSSH212CreateTunnelEPKc]+0x23b): undefined reference to `libssh2_userauth_publickey_fromfile_ex'
/tmp/ccGeFPjG.o: In function `CSSH2::ConnectTunnel()':
AddWork.cpp:(.text._ZN5CSSH213ConnectTunnelEv[_ZN5CSSH213ConnectTunnelEv]+0xcf): undefined reference to `libssh2_channel_direct_tcpip_ex'
AddWork.cpp:(.text._ZN5CSSH213ConnectTunnelEv[_ZN5CSSH213ConnectTunnelEv]+0x128): undefined reference to `libssh2_session_set_blocking'
collect2: error: ld returned 1 exit status