This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: direct.h + pthreads




> -----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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]