Web lists-archives.org

Re: [Mingw-users] Using mscv dlls containig c++ classes in mingw




Mathias Tausig wrote:

> I always get undefined references for every single
> function I use, expect for pure C function defined in the header as
> 'extern "C" ', but not for anything using c++.

This is by design.  It's not supposed to work.  The two compilers are
only compatible at the C level, they use different C++ ABIs.  This is
true of most C++ compilers, in fact even different versions of g++ can
have different ABIs.  When dealing with C++, everything has to be built
with the same tools, more or less.

Brian

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
MinGW-users mailing list
MinGW-users@xxxxxxxxxxxxxxxxxxxxx

You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users