Subject: RE: static linking problem

RE: static linking problem

From: Neil Gierman <ngierman_at_roadrunn.com>
Date: Mon, 18 Oct 2010 12:09:12 -0500

> 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.

_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
Received on 2010-10-18