>> 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 
/usr/local/include

cu
may



_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel

Reply via email to