Subject: Re: mingw cross compilation

Re: mingw cross compilation

From: Thomas Stover <thomas_at_wsinnovations.com>
Date: Thu, 17 Jun 2010 11:59:36 -0500

On Wed, 16 Jun 2010 23:52:12 +0200, Simon Josefsson <simon_at_josefsson.org>
wrote:

> Put /opt/crosscompilers/win32/bin/ in your PATH instead, and remove the
> CC= parameter. Configure should figure out by itself how to invoke the
> C compiler for the cross-compilation requested by --build and --host.

ok that gets me much further along. Now it errors with:
/bin/bash ../libtool --tag=CC --mode=link i686-mingw32-gcc
-DLIBSSH2_WIN32 -DWINSOCK_VERSION=0x0200 -o direct_tcpip.exe
direct_tcpip.o ../src/libssh2.la -lws2_32
libtool: link: i686-mingw32-gcc -DLIBSSH2_WIN32 -DWINSOCK_VERSION=0x0200
-o .libs/direct_tcpip.exe direct_tcpip.o ../src/.libs/libssh2.a
-L/home/HOMS/x2stover/src//lib -lssl -lcrypto
-L/opt/crosscompilers/win32/mingw/lib -lz -lws2_32
direct_tcpip.o:direct_tcpip.c:(.text+0x14c): undefined reference to
`__imp__libssh2_init'
direct_tcpip.o:direct_tcpip.c:(.text+0x272): undefined reference to
`__imp__libssh2_session_init_ex'
direct_tcpip.o:direct_tcpip.c:(.text+0x2c6): undefined reference to
`__imp__libssh2_session_startup'
direct_tcpip.o:direct_tcpip.c:(.text+0x312): undefined reference to
`__imp__libssh2_hostkey_hash'
direct_tcpip.o:direct_tcpip.c:(.text+0x3b8): undefined reference to
`__imp__libssh2_userauth_list'
direct_tcpip.o:direct_tcpip.c:(.text+0x4d0): undefined reference to
`__imp__libssh2_userauth_password_ex'
direct_tcpip.o:direct_tcpip.c:(.text+0x555): undefined reference to
`__imp__libssh2_userauth_publickey_fromfile_ex'
direct_tcpip.o:direct_tcpip.c:(.text+0x783): undefined reference to
`__imp__libssh2_channel_direct_tcpip_ex'
direct_tcpip.o:direct_tcpip.c:(.text+0x7ce): undefined reference to
`__imp__libssh2_session_set_blocking'
direct_tcpip.o:direct_tcpip.c:(.text+0x954): undefined reference to
`__imp__libssh2_channel_write_ex'
direct_tcpip.o:direct_tcpip.c:(.text+0x9bc): undefined reference to
`__imp__libssh2_channel_read_ex'
direct_tcpip.o:direct_tcpip.c:(.text+0xa61): undefined reference to
`__imp__libssh2_channel_eof'
direct_tcpip.o:direct_tcpip.c:(.text+0xab7): undefined reference to
`__imp__libssh2_channel_free'
direct_tcpip.o:direct_tcpip.c:(.text+0xadc): undefined reference to
`__imp__libssh2_session_disconnect_ex'
direct_tcpip.o:direct_tcpip.c:(.text+0xae9): undefined reference to
`__imp__libssh2_session_free'
direct_tcpip.o:direct_tcpip.c:(.text+0xafe): undefined reference to
`__imp__libssh2_exit'
collect2: ld returned 1 exit status

Any thoughts?

-- 
www.thomasstover.com
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
Received on 2010-06-17