Subject: Re: static linking problem

Re: static linking problem

From: Ivan Pechorin <ivan.pechorin_at_gmail.com>
Date: Mon, 18 Oct 2010 20:47:34 +0400

2010/10/18 may nothing <may_241913_at_yahoo.com>:

> I'm trying to create a binary statically linked to the libssh2 libraries.
> Unfortunately this task fails ...
>
> root_at_server: /data/work > gcc -I/usr/local/include -I/usr/include
> -L/usr/local/lib -L/usr/lib -static sftptest.c -o sftptest

> Any ideas ?

Did you try adding "-lssh2" to linker flags?
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
Received on 2010-10-18