I have written a tiny application for Ubuntu, and it works great. I am interested in cross-compiling it for Windows.
I have installed
mingw32 from repository, and it compiles simple files very well. However, the app I want to compile for Windows uses some UNIX specific mechanism - for example it makes use of the sys/socket.h file, and the mingw compiler claims it can't find it.
One solution is to install Cygwin on a Windows machine, and try compiling the application from there, using Cygwin executables. Unfortunately, I don't have access to any Windows machine, as I don't own a copy that system. It would be perfect if I somehow could use Cygwin (with it's libraries and headers) on my Ubuntu to compile an .exe file.
There is no package with it in the repositories. Can anyone give me some on how to use Cygwin on Ubuntu?