Subject: Re: mingw32 cross

Re: mingw32 cross

From: Peter Stuge <>
Date: Wed, 13 Jan 2010 19:37:42 +0100

salsa lover wrote:
> make[2]: Entering directory
> `/home/alian/Desktop/Temp/mingw-cross-env-2.10/Temp/libssh2-1.2.2/example/simple'
> /bin/bash ../../libtool --tag=CC --mode=link i686-pc-mingw32-gcc
> -DLIBSSH2_WIN32 -DWINSOCK_VERSION=0x0200 -o ssh2.exe ssh2.o ../../src/
> -lws2_32
> libtool: link: i686-pc-mingw32-gcc -DLIBSSH2_WIN32 -DWINSOCK_VERSION=0x0200
> -o .libs/ssh2.exe ssh2.o ../../src/.libs/libssh2.a -lssl -lcrypto -lz
> -lws2_32
> ssh2.o:ssh2.c:(.text+0x17c): undefined reference to
> `__imp__libssh2_session_init_ex'

Maybe we should think about changing how the examples are built to
actually make them use -l rather than include object archives?

Received on 2010-01-13