Posix support in mingw..

Richard W.M. Jones rjones at redhat.com
Fri Mar 6 09:53:31 UTC 2009


On Fri, Mar 06, 2009 at 06:38:07PM +0900, roy basavaraju wrote:
>   I am developing a linux based tool on mingw environment.  this tool
> requires posix apis, which mingw doesnt support. i can not use cygwin due to
> some limitations.

It depends which POSIX APIs your application is using.  We provide a
tool 'mingw32-crossreport' that you can use, which analyzes the APIs
used by a Linux application and offers suggestions on what you can do
to either substitute or emulate them.  Read the mingw32-crossreport
manual page for more information, or run it on your app.

MinGW is NOT Cygwin - it is not a POSIX emulation service for Windows.
Therefore you have to use some sort of replacement library, or (in a
few cases) recode your application to use Win32 calls instead of POSIX
calls.

Some portabilities libraries you can consider:

 - gnulib
 - glib
 - NSPR
 - APR
 - Qt
 - POCO & Boost (for C++)

Rich.

-- 
Richard Jones, Emerging Technologies, Red Hat  http://et.redhat.com/~rjones
virt-top is 'top' for virtual machines.  Tiny program with many
powerful monitoring features, net stats, disk stats, logging, etc.
http://et.redhat.com/~rjones/virt-top



More information about the mingw mailing list