Odd runtime error, undefined symbol: ssh_channel_new
Hey all,
I'm writing a simple c++ program with libssh (http://www.libssh.org/) that will create an ssh connection with my samba server, and then create a user with an inputted username and password. My program compiles with no errors or warnings, and it executes the first several functions from the libssh library without any problems; however, when my program tries to execute the ssh_channel_new command, I get the run time error: ./myProgram: symbol lookup error: ./myProgram: undefined symbol: ssh_channel_new I'm using a makefile generated from QT's qmake, and added -lssh to the LIBS option line. Here is the code leading up to the error, most of it is copied from the libssh examples, so I really don't know what could be going wrong. Any help would be greatly appreciated :) Code:
ssh_session ssh; |
|
Where is your libssh.so file located at, relative to your binary?
|
I figured out the problem. Apparently when I installed the libssh libraries, it was not a complete installation and therefore I got these errors. It just confused me because I figured that the program wouldn't even compile if it was missing some of the files. Anyway, thank you all for trying to help! :)
|
All times are GMT -5. The time now is 05:30 AM. |