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: .dll question


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/


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