Not logged in
Log in now
Create an account
Subscribe to LWN
LWN.net Weekly Edition for May 16, 2013
A look at the PyPy 2.0 release
PostgreSQL 9.3 beta: Federated databases and more
LWN.net Weekly Edition for May 9, 2013
(Nearly) full tickless operation in 3.10
Posted Nov 20, 2008 7:54 UTC (Thu) by nix (subscriber, #2304)
Posted Nov 20, 2008 8:04 UTC (Thu) by rwmj (subscriber, #5474)
The Fedora MinGW project is a cross-compiler that creates Windows executables. If you want
select-like ability, you could use some Win32 API for that such as - as nix says -
But you could also (and we'd recommend) use some portability library like glib or NSPR which deals
with the matter in another way and has already been ported to whatever Win32 APIs exist (on
Windows) or whatever Linux/POSIX APIs exist on Linux/Unix.
Posted Nov 20, 2008 12:23 UTC (Thu) by aleXXX (subscriber, #2742)
Doesn't Boost also have some file/threading classes in the meantime ?
Posted Nov 20, 2008 13:46 UTC (Thu) by rwmj (subscriber, #5474)
I packaged boost. Boost is a classic example of an upstream package where they've gone off and written their own build system, so they have to maintain all the complexity of building on every system out there, and I had to add to that complexity for cross-compiling. I also did another C++ network environment called POCO, and they also wrote their own build system, completely different from the boost one obviously.
C++ programmers, eh - haven't they suffered enough already?
While we're on the subject of portability libraries, APR (Apache Portable Runtime) is another contender.
Posted Nov 20, 2008 22:50 UTC (Thu) by nix (subscriber, #2304)
Posted Nov 21, 2008 8:50 UTC (Fri) by aleXXX (subscriber, #2742)
Posted Nov 22, 2008 12:34 UTC (Sat) by nix (subscriber, #2304)
Posted Nov 20, 2008 9:52 UTC (Thu) by danpb (subscriber, #4831)
If you want a Windows based runtime environment that strives to completely simulate POSIX APIs, then Cygwin is likely a more suitable choice. If you are happy to work against the Win32 APIs more directly, then GNULib provides wrappers around a number of Win32 APIs to give you a degree of POSIX compatability often good enough for many apps. Finally there are higher level APIs like GLib, QT, NSPR which attempt to provide a platform agnostic APIs.
Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds