CLion vs sshlib C problem

已回答

Hey, I cant get sshlib to work on my setup and Im out of ideas.

Im trying to write a windows ssh client so I need it.

The output of an error is as following:

27: fatal error: libssh/libssh.h: No such file or directory
#include <libssh/libssh.h>
^
compilation terminated.
mingw32-make.exe[3]: *** [CMakeFiles/sshApp2.dir/sshClient.c.obj] Error 1
CMakeFiles\sshApp2.dir\build.make:74: recipe for target 'CMakeFiles/sshApp2.dir/sshClient.c.obj' failed
mingw32-make.exe[2]: *** [CMakeFiles/sshApp2.dir/all] Error 2
CMakeFiles\Makefile2:71: recipe for target 'CMakeFiles/sshApp2.dir/all' failed
mingw32-make.exe[1]: *** [CMakeFiles/sshApp2.dir/rule] Error 2
CMakeFiles\Makefile2:83: recipe for target 'CMakeFiles/sshApp2.dir/rule' failed
mingw32-make.exe: *** [sshApp2] Error 2
Makefile:117: recipe for target 'sshApp2' failed

 

Does anybody have the same issue maybe?

Cheers.

 

#Windows 10.0.17134.345. #gcc version 6.3.0 (MinGW.org GCC-6.3.0-1)

0

Hi! Have you specified an appropriate header search path in your CMakeLists.txt? Please see https://www.jetbrains.com/help/clion/quick-cmake-tutorial.html#include.

Also you'll need to link an executable to the library (https://www.jetbrains.com/help/clion/quick-cmake-tutorial.html#libs).

 

1

请先登录再写评论。