Hi all, I'm trying to create a binary statically linked to the libssh2 libraries. Unfortunately this task fails ...
r...@server: /data/work > gcc -I/usr/local/include -I/usr/include -L/usr/local/lib -L/usr/lib -static sftptest.c -o sftptest /tmp/ccUiruqf.o: In function `main': sftptest.c:(.text+0xc7): undefined reference to `libssh2_init' sftptest.c:(.text+0x219): undefined reference to `libssh2_session_init_ex' sftptest.c:(.text+0x24b): undefined reference to `libssh2_session_set_blocking' sftptest.c:(.text+0x265): undefined reference to `libssh2_session_startup' sftptest.c:(.text+0x2b8): undefined reference to `libssh2_hostkey_hash' sftptest.c:(.text+0x371): undefined reference to `libssh2_userauth_password_ex' sftptest.c:(.text+0x3fe): undefined reference to `libssh2_sftp_init' sftptest.c:(.text+0x4a9): undefined reference to `libssh2_sftp_open_ex' sftptest.c:(.text+0x52e): undefined reference to `libssh2_sftp_read' sftptest.c:(.text+0x57a): undefined reference to `libssh2_sftp_close_handle' sftptest.c:(.text+0x5b1): undefined reference to `libssh2_sftp_shutdown' sftptest.c:(.text+0x5d8): undefined reference to `libssh2_session_disconnect_ex' sftptest.c:(.text+0x5e7): undefined reference to `libssh2_session_free' sftptest.c:(.text+0x623): undefined reference to `libssh2_exit' collect2: ld returned 1 exit status libssh2.h and libssh2_sftp.h are present in /usr/local/include Any ideas ? cu may _______________________________________________ libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
