Answer the question
In order to leave comments, you need to log in
How to compile cpp on linux with additional library?
-c libsshpp.cpp, but it throws an error
bash: ./libsshpp: Permission denied, I tried to give permissions through chmod, but nothing comes out either
bash: ./libsshpp: cannot execute binary file: Exec format error
Answer the question
In order to leave comments, you need to log in
https://rtfm.co.ua/c-libssh-primer-ssh-clienta/
gcc -lssh ssh_client_libssh1.c -o ssh_client_libssh1
на убунте проверял
чтиво по флагам дял конфигурирования
https://github.com/libssh2/libssh2/blob/master/docs/INSTALL_AUTOTOOLS
sudo apt-get install gcc g++ pkg-config libncurses5-dev gawk build-essential autotools-dev bison re2c flex gperf libtool automake cmake
cd /home
sudo mkdir test
sudo chmod -R 777 test
wget https://www.libssh2.org/download/libssh2-1.8.2.tar.gz
sudo tar -xzf libssh2-1.8.2.tar.gz
cd libssh2-1.8.2
./buildconf
./configure
make
далее думаю разберетесь
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question