iostream doesn't work (clang++)
gs-cygwin.com@gluelogic.com
gs-cygwin.com@gluelogic.com
Fri Jul 7 18:18:04 GMT 2023
On Fri, Jul 07, 2023 at 04:48:08PM +0100, Jon Turney via Cygwin wrote:
> On 06/07/2023 00:08, Brian Inglis via Cygwin wrote:
> >
> > I have no idea why both compilers would include w32api headers as if
> > they were building Mingw cross compilers!
>
> You are allowed to use the Win32 API in Cygwin programs (with some caveats).
Interesting.
Is there some collected wisdom somewhere to which you could point me?
(specifically the caveats)
My code runs under cygwin and I more recently ported it to native
Windows. Windows is not POSIX, but does provide a hodge-podge of
functions named the same as POSIX function, sometimes with slightly
different behavior and sometimes with slightly different function
signatures (!).
For performance under cygwin, it is desirable to use Windows-native API
when the cygwin layer is a simple translation compatibility layer from
POSIX to Windows API. However, Windows is not simple, and seemingly
never invested in creating a stable and functional set of POSIX-like
interfaces, and is one of the reasons cygwin is so useful to bridge that
gapping chasm.
Cheers, Glenn
More information about the Cygwin
mailing list