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 Date: Sun, 20 Apr 2003 14:56:27 +0100 Message-Id: <8041-Sun20Apr2003145627+0100-david@starks-browning.com> From: David Starks-Browning MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: cygwin AT cygwin DOT com Subject: Re: .dll question In-Reply-To: <1033600781.14524.221.camel@lifelesswks> References: <3D9B1B11 DOT 16005 DOT 3D0BDC AT localhost> <1033600781 DOT 14524 DOT 221 DOT camel AT lifelesswks> On 3 Oct 02, Robert Collins writes: > On Thu, 2002-10-03 at 09:13, Paul G. wrote: > > > On a related note, can Cygwin generate c++ .dlls which are loadable by msvc++ or > > does Microsofts' method of name mangling prohibit such things? > > No it can't. In general, C++ compilers don't interoperate. The C++-Lite > FAQ has a section on this. > > >From memory, the issues are: > *name mangling > *VMT layout > *new[] management > *exception handling > > If you want to use cygwin C++ from MSVC, write some C bindings for the > code. Apologies for this blast from the past. As you can see I'm nearly 7(!) months behind in the mailing list. (But I'm catching up!) All the FAQ says about this is the following: Q. Can I mix objects compiled with msvc++ and gcc? A. Yes, but only if you are combining C object files. MSVC C++ uses a different mangling scheme than GNU C++, so you will have difficulties combining C++ objects. I'd like to include the extra detail that Robert goes into, if it's correct. Does anyone know for sure? Thanks for your help. Regards, David (Cygwin FAQ maintainer) -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/