iostream doesn't work (clang++)

Jon Turney jon.turney@dronecode.org.uk
Sat Jul 8 09:12:04 GMT 2023


On 07/07/2023 19:18, gs-cygwin.com--- via Cygwin wrote:
> 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)

The caveats are mentioned in the Cygwin UG. See:

https://cygwin.com/cygwin-ug-net/setup-env.html#setup-env-win32
https://cygwin.com/cygwin-ug-net/using.html#pathnames-win32-api
https://cygwin.com/cygwin-ug-net/programming.html#gcc-64

One additional caveat I am aware of which possibly should be documented 
there, but isn't, is basically "Don't try to use DllMain() in a Cygwin 
DLL, unless you know exactly what you are doing".



More information about the Cygwin mailing list