Ok , i downloaded libssh-0.5.0.exe from the website and linked the ssh.lib with my project and included the libssh.h .
and i just wrote this (below) to try it, but i get :
[quote]
Starting C:\Users\saeed\build-ACS_tool-Desktop_Qt_5_3_MSVC2013_OpenGL_32bit-Debug\debug\ACS_tool.exe...
The program has unexpectedly finished.
C:\Users\saeed\build-ACS_tool-Desktop_Qt_5_3_MSVC2013_OpenGL_32bit-Debug\debug\ACS_tool.exe crashed
[/quote]
My code , is simple created a form put on it a push button and defined for it the onclick() :
[quote]
#include "mainwindow.h"
#include "ui_mainwindow.h"
#include <stdlib.h>
#include "libssh.h"
MainWindow::MainWindow(QWidget *parent) :
QMainWindow(parent),
ui(new Ui::MainWindow)
{
ui->setupUi(this);
}
MainWindow::~MainWindow()
{
delete ui;
}
void MainWindow::on_pushButton_clicked()
{
ssh_session my_ssh_session;
my_ssh_session = ssh_new();
}
[/quote]
the code compiles with no error , and if i comment the function on_pushButton_clicked() the program runs with crashing , what could be the problem , because i cant even debug it .