Using libssh C++ wrapper -


anyone here have experienced libssh c++ wrapper yet? can here i'm using 0.6.3 version . follow install instruction in downloaded file build libraries.

then try compile example in examples directory libsshpp.cpp

#include <iostream> #include <string> #include <libssh/libsshpp.hpp>  int main(int argc, const char **argv){   ssh::session session;   try {     if(argc>1)       session.setoption(ssh_options_host,argv[1]);     else       session.setoption(ssh_options_host,"localhost");     session.connect();     session.userauthautopubkey();     session.disconnect();   } catch (ssh::sshexception e){     std::cout << "error during connection : ";     std::cout << e.geterror() << std::endl;   }   return 0; } 

by command g++ -o sh libsshpp.cpp -lssh successed when execute take error : ./sh: symbol lookup error: ./sh: undefined symbol: ssh_userauth_publickey_auto. hope worked libssh can help!


Comments

Popular posts from this blog

c# - Unity IoC Lifetime per HttpRequest for UserStore -

Change the color of an oval at click in Java AWT -

I am trying to solve the error message 'incompatible ranks 0 and 1 in assignment' in a fortran 95 program. -