direct.h + pthreads

Robert Collins robert.collins@itdomain.com.au
Wed May 29 02:52:00 GMT 2002



> -----Original Message-----
> From: cygwin-owner@cygwin.com 
> [mailto:cygwin-owner@cygwin.com] On Behalf Of Sven Sandberg
> Sent: Wednesday, 29 May 2002 8:43 AM
> To: cygwin@cygwin.com
> Subject: Re: direct.h + pthreads
> 
> 
> egor duda wrote:
> > You're trying to mix two unmixable things. I'll try to explain what
> > -mno-cygwin flag does and hope it will help you answer all those
> > questions yourself.
> 
> Thank you for explaining, that makes sense.
> 
> > One shouldn't mix headers and libraries for different platforms
> 
> You can actually mix dlls and programs compiled with MinGW32, Borland
> C++ Builder, and MSVC freely if you do it correctly. Is it strictly
> impossible to mix these with Cygwin, or just tricky? Is it possible if
> I'm allowed to modify headers?

You can only mix DLL's that follow the same rules for:
Structure alignment
C runtime
Exception handling

And do not contain C++. 

Libpthread.a is a cygwin1.dll alias. This means that you are trying to
break the C++ rule, the C runtime rule, the exception handling rule and
the Structure alignment rule all at once.

Rob


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/



More information about the Cygwin mailing list