Subject: RE: static linking problem

RE: static linking problem

From: Neil Gierman <>
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.

Received on 2010-10-18