I'm by far no expert on C and even if the solution is righ there I can't see it. Have been trying this for 2 days now and I think I've given it my best.
Specs: Win7 x64, Compiler MinGW and CMake up and running
To use my compiler I issued in the downloaded folder in Desktop: cmake -G "MinGW Makefiles"
After that, in the same folder I did: cmake --build .
Ended up at 100% and what seems to me without any error:
[100%] Linking C executable test_keyboard_interactive_auth_fails_with_wrong_response.exe
[100%] Build target test_keyboard_interactive_auth_fails_with_wrong_response
Now my code is utterly simple, I just want to make it work but fails on the headers. I am following this tutorial http://api.libssh.org/master/libssh_tutorial.html and can't even make the first page work.
The headers I tried, that I can remember, are:
#include <libssh2.h> #include <libssh/libssh.h> #include <libssh.h>
and I get "No such file or directory" for any of the headers.
At home I managed to do something different: by adding the libssh.h library and its files manually to the folder I was working on and changing the headers to #include "libssh.h"
After that I would not get that error but would raise a different one, something like "undefined reference to ssh_new" or something like that, can't remember now but can update on it later.
I would appreciate any help. I wouldnt mind compiling from Linux if its going to be easier but my target is to make an ssh server and a ssh client for windows (initially) and by myself - following that tutorial or another one.
Cheers everyone.