Hello,
I tried each of them, and the same problem. When I disable shared, I dont
get the " Warning: linker path does not have real file for library -lssl."
errors. Either way, I get the same undefined reference errors. Maybe I'm on
the wrong track.

On Fri, May 18, 2012 at 12:49 AM, Peter Stuge <pe...@stuge.se> wrote:

> Alex Rolfe wrote:
> > I didnt see any configure options
>
> --enable/disable-shared
> --enable/disable-static
>
>
> > Library types:    Shared=yes, Static=yes
>
> Build them one at a time, or better yet build only the one you
> actually need. libtool doesn't deal well with the examples when
> building both library types.
>
>
> //Peter
> _______________________________________________
> libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
>
Making all in example
make[1]: Entering directory 
`/cygdrive/c/Users/Valistar/Desktop/libssh2-1.4.1/example'
make  all-am
make[2]: Entering directory 
`/cygdrive/c/Users/Valistar/Desktop/libssh2-1.4.1/example'
if gcc -DHAVE_CONFIG_H   -I../include -I../example  -I/usr/local/ssl/include  
-DLIBSSH2_WIN32 -MT direct_tcpip.o -MD -MP -MF ".deps/direct_tcpip.Tpo" -c -o 
direct_tcpip.o direct_tcpip.c; \
then mv -f ".deps/direct_tcpip.Tpo" ".deps/direct_tcpip.Po"; else rm -f 
".deps/direct_tcpip.Tpo"; exit 1; fi
/bin/sh ../libtool --tag=CC --mode=link gcc  -DLIBSSH2_WIN32    -o 
direct_tcpip.exe  direct_tcpip.o ../src/libssh2.la
libtool: link: gcc -DLIBSSH2_WIN32 -o .libs/direct_tcpip.exe direct_tcpip.o  
../src/.libs/libssh2.a -L/usr/local/ssl/lib -lssl -lcrypto
direct_tcpip.o:direct_tcpip.c:(.text+0xec): undefined reference to 
`__imp__libssh2_init'
direct_tcpip.o:direct_tcpip.c:(.text+0x21f): undefined reference to 
`__imp__libssh2_session_init_ex'
direct_tcpip.o:direct_tcpip.c:(.text+0x27e): undefined reference to 
`__imp__libssh2_session_handshake'
direct_tcpip.o:direct_tcpip.c:(.text+0x2d5): undefined reference to 
`__imp__libssh2_hostkey_hash'
direct_tcpip.o:direct_tcpip.c:(.text+0x398): undefined reference to 
`__imp__libssh2_userauth_list'
direct_tcpip.o:direct_tcpip.c:(.text+0x4cf): undefined reference to 
`__imp__libssh2_userauth_password_ex'
direct_tcpip.o:direct_tcpip.c:(.text+0x55c): undefined reference to 
`__imp__libssh2_userauth_publickey_fromfile_ex'
direct_tcpip.o:direct_tcpip.c:(.text+0x7d3): undefined reference to 
`__imp__libssh2_channel_direct_tcpip_ex'
direct_tcpip.o:direct_tcpip.c:(.text+0x82a): undefined reference to 
`__imp__libssh2_session_set_blocking'
direct_tcpip.o:direct_tcpip.c:(.text+0x9f8): undefined reference to 
`__imp__libssh2_channel_write_ex'
direct_tcpip.o:direct_tcpip.c:(.text+0xa89): undefined reference to 
`__imp__libssh2_channel_read_ex'
direct_tcpip.o:direct_tcpip.c:(.text+0xb6c): undefined reference to 
`__imp__libssh2_channel_eof'
direct_tcpip.o:direct_tcpip.c:(.text+0xbcd): undefined reference to 
`__imp__libssh2_channel_free'
direct_tcpip.o:direct_tcpip.c:(.text+0xbf6): undefined reference to 
`__imp__libssh2_session_disconnect_ex'
direct_tcpip.o:direct_tcpip.c:(.text+0xc07): undefined reference to 
`__imp__libssh2_session_free'
direct_tcpip.o:direct_tcpip.c:(.text+0xc1d): undefined reference to 
`__imp__libssh2_exit'
/usr/lib/gcc/i686-pc-cygwin/4.5.3/../../../../i686-pc-cygwin/bin/ld: 
direct_tcpip.o: bad reloc address 0x0 in section `.data'
/usr/lib/gcc/i686-pc-cygwin/4.5.3/../../../../i686-pc-cygwin/bin/ld: final link 
failed: Invalid operation
collect2: ld returned 1 exit status
Makefile:379: recipe for target `direct_tcpip.exe' failed
make[2]: *** [direct_tcpip.exe] Error 1
make[2]: Leaving directory 
`/cygdrive/c/Users/Valistar/Desktop/libssh2-1.4.1/example'
Makefile:321: recipe for target `all' failed
make[1]: *** [all] Error 2
make[1]: Leaving directory 
`/cygdrive/c/Users/Valistar/Desktop/libssh2-1.4.1/example'
Makefile:360: recipe for target `all-recursive' failed
make: *** [all-recursive] Error 1
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel

Reply via email to