Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com From: "Robert Collins" To: "'Sven Sandberg'" , Subject: RE: direct.h + pthreads Date: Wed, 29 May 2002 08:45:20 +1000 Message-ID: <000201c20699$58cf51a0$0200a8c0@lifelesswks> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Importance: Normal In-Reply-To: <3CF407DE.81876EA@student.uu.se> X-OriginalArrivalTime: 28 May 2002 22:45:18.0068 (UTC) FILETIME=[5716F340:01C20699] > -----Original Message----- > From: cygwin-owner AT cygwin DOT com > [mailto:cygwin-owner AT cygwin DOT com] On Behalf Of Sven Sandberg > Sent: Wednesday, 29 May 2002 8:43 AM > To: cygwin AT cygwin DOT 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/