Re: [Mingw-users] Using mscv dlls containig c++ classes in mingw
- Date: Fri, 08 Feb 2008 07:06:51 -0500
- From: Earnie Boyd <earnie@xxxxxxxxxxxxxxxxxxxxx>
- Subject: Re: [Mingw-users] Using mscv dlls containig c++ classes in mingw
Quoting Mathias Tausig <mtausig@xxxxxxxx>:
>> 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
>>
>
> Damn, that's bad.
> Thank you still, at least I know that I don't have to dig any farther.
>
Don't despair needlessly. ;) Use C wrappers. See
http://www.mingw.org/MinGWiki/index.php/MixingCompilers
Earnie
-------------------------------------------------------------------------
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