From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14894 invoked by alias); 28 May 2002 22:45:21 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 14884 invoked from network); 28 May 2002 22:45:19 -0000 Received: from unknown (HELO itdomain003.itdomain.net.au) (203.63.157.208) by sources.redhat.com with SMTP; 28 May 2002 22:45:19 -0000 Received: from lifelesswks ([10.1.1.1]) by itdomain003.itdomain.net.au with Microsoft SMTPSVC(5.0.2195.3779); Wed, 29 May 2002 08:45:17 +1000 From: "Robert Collins" To: "'Sven Sandberg'" , Subject: RE: direct.h + pthreads Date: Wed, 29 May 2002 02:52:00 -0000 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] X-SW-Source: 2002-05/txt/msg01736.txt.bz2 > -----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/