Crosscompiling to win32

Hi,

I want to port an SDL project from Linux to Windows and I plan to use the
xmingw32 compiler for linux.
My program is dynamically linked against libpng, libz and libttf.
How do I manage to get a win32 executable ?
Will statically linking these libs work or need I to rebuild these libs within
the crosscompiler environment ?

regards,–
Karsten-O. Laux
klaux at student.uni-kl.de
http://www.rhrk.uni-kl.de/~klaux
UIN 21614933 (Bert)

Hi,

I want to port an SDL project from Linux to Windows and I plan to use the
xmingw32 compiler for linux.
My program is dynamically linked against libpng, libz and libttf.
How do I manage to get a win32 executable ?
Will statically linking these libs work or need I to rebuild these libs within
the crosscompiler environment ?

Yes, statically linking these will work, but you have to build Win32 versions
of these libs. It shouldn’t be too hard. Hey, if you build them, can you
make them publicly available? I can put them on my website, if you want.
I think you can also make DLL’s of them, but… shrug I dunno how.

-Sam Lantinga				(slouken at devolution.com)

Lead Programmer, Loki Entertainment Software–
Author of Simple DirectMedia Layer -
http://www.devolution.com/~slouken/SDL/