Thanks to rpdom and PeterO.
The problem was trivial.
simply the library is not called libssh2.lib but ssh2 !
The compilation command is:
gcc -Wall -Wno-unused-function myProgram.c -o myProgram.exe -l ssh2
Code: Select all
do {
if (read(fd, buf, 2) != 2) {
perror("Read conversion");
exit(-1);
}
} while (!(buf[0] & 0x80));