Skip to content

Instantly share code, notes, and snippets.

@rkitover
Created April 22, 2012 13:03
Show Gist options
  • Select an option

  • Save rkitover/2464040 to your computer and use it in GitHub Desktop.

Select an option

Save rkitover/2464040 to your computer and use it in GitHub Desktop.
./buildconf
./configure --enable-debug --with-openssl --with-libz --with-libssl-prefix=/c/Users/rkitover/src/openssl-1.0.1a --with-libz-prefix=/c/Users/rkitover/src/zlib-1.2.6
make
...
libtool: link: gcc -DLIBSSH2_WIN32 -g -W -Wall -Wwrite-strings -pedantic -Wpointer-arith -Wnes
ted-externs -Winline -Wmissing-prototypes -Wmissing-declarations -Wundef -Wno-long-long -Wsign
-compare -Wfloat-equal -Wno-format-nonliteral -Wendif-labels -Wstrict-prototypes -Wdeclaration
-after-statement -isystem /c/Users/rkitover/src/openssl-1.0.1a/include -isystem /c/Users/rkito
ver/src/zlib-1.2.6/include -o .libs/direct_tcpip.exe direct_tcpip.o ../src/.libs/libssh2.a -L
/c/Users/rkitover/src/openssl-1.0.1a/lib -L/c/Users/rkitover/src/zlib-1.2.6/lib -lssl -lcrypto
-lz -lws2_32
direct_tcpip.o: In function `main':
c:\Users\rkitover\src\libssh2\example/direct_tcpip.c:89: undefined reference to `_imp__libssh2
_init'
c:\Users\rkitover\src\libssh2\example/direct_tcpip.c:110: undefined reference to `_imp__libssh
2_session_init_ex'
c:\Users\rkitover\src\libssh2\example/direct_tcpip.c:119: undefined reference to `_imp__libssh
2_session_handshake'
c:\Users\rkitover\src\libssh2\example/direct_tcpip.c:130: undefined reference to `_imp__libssh
2_hostkey_hash'
c:\Users\rkitover\src\libssh2\example/direct_tcpip.c:137: undefined reference to `_imp__libssh
2_userauth_list'
c:\Users\rkitover\src\libssh2\example/direct_tcpip.c:153: undefined reference to `_imp__libssh
2_userauth_password_ex'
c:\Users\rkitover\src\libssh2\example/direct_tcpip.c:158: undefined reference to `_imp__libssh
2_userauth_publickey_fromfile_ex'
c:\Users\rkitover\src\libssh2\example/direct_tcpip.c:203: undefined reference to `_imp__libssh
2_channel_direct_tcpip_ex'
c:\Users\rkitover\src\libssh2\example/direct_tcpip.c:213: undefined reference to `_imp__libssh
2_session_set_blocking'
c:\Users\rkitover\src\libssh2\example/direct_tcpip.c:236: undefined reference to `_imp__libssh
2_channel_write_ex'
c:\Users\rkitover\src\libssh2\example/direct_tcpip.c:245: undefined reference to `_imp__libssh
2_channel_read_ex'
c:\Users\rkitover\src\libssh2\example/direct_tcpip.c:261: undefined reference to `_imp__libssh
2_channel_eof'
c:\Users\rkitover\src\libssh2\example/direct_tcpip.c:278: undefined reference to `_imp__libssh
2_channel_free'
c:\Users\rkitover\src\libssh2\example/direct_tcpip.c:279: undefined reference to `_imp__libssh
2_session_disconnect_ex'
c:\Users\rkitover\src\libssh2\example/direct_tcpip.c:280: undefined reference to `_imp__libssh
2_session_free'
c:\Users\rkitover\src\libssh2\example/direct_tcpip.c:288: undefined reference to `_imp__libssh
2_exit'
collect2: ld returned 1 exit status
make[2]: *** [direct_tcpip.exe] Error 1
make[2]: Leaving directory `/c/Users/rkitover/src/libssh2/example'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/c/Users/rkitover/src/libssh2/example'
make: *** [all-recursive] Error 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment