Subject: AW: static linking problem

AW: static linking problem

From: may nothing <>
Date: Mon, 18 Oct 2010 19:19:48 +0100 (BST)

>> I'm trying to create a binary statically linked to the libssh2

>> libraries.
>> Unfortunately this task fails ...

>If you want static linking, try:

>gcc -I/usr/local/include /usr/local/lib/libssh2.a sftptest.c -o sftptest

>The "-l" and "-L" I only use for dynamic linking.

Tried, but no effect. I also tried adding -lssh2 ...
Given the fact that the linker complains about "libssh2_init" it looks more like
a ssh.h problem to me. But still, libssh2.h and libssh2_sftp.h are available in


Received on 2010-10-18