[Klone-users] Cross compilation on Linux for Windows

thomas fossati tho at koanlogic.com
Sun Apr 19 15:09:31 EDT 2009


Hi Mickael,

On Apr 16, 2009, at 11:13 AM, Mickael Auger wrote:
> I install Mingw on my Linux and I create this toolchain file for  
> KLone :
> =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
> #custom path because mingw is compiled by not install
> CROSS = /usr/local/cross-tools/bin/i386-mingw32
> MINGW32_CFLAGS =
> MINGW32_CXXFLAGS = ${MINGW32_CFLAGS}
>
> CC = ${CROSS}-gcc ${MINGW32_CFLAGS}
> LDFLAGS =
> CXX = ${CROSS}-g++ ${MINGW32_CXXFLAGS}
> CXXFLAGS = ${CFLAGS}
> AR = ${CROSS}-ar
> RANLIB = ${CROSS}-ranlib
> LD = ${CROSS}-ld
> NM = ${CROSS}-nm
> STRIP = ${CROSS}-strip
> =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

have you already tried to set the relevant compiler/linker flags in  
the toolchain file ?  I mean something like:

MINGW32_CFLAGS = -DOS_WIN
POST_LDADD = -lwsock32 -L/your/mingw/lib/path

?

Let us know, t.




More information about the klone-users mailing list