Tuomo Latto wrote:
> Unlike with C, using C++ across different compilers is pretty much
> *never* supported - ehatever the combination. The binary interface,
> as well as the name mangling scheme, is different with regard to
> GCC vs. MSVC. That's pretty much what it says in the page I
> provided the link to. I suppose that could be written in plainer
> English in the FAQ.
> The problem is that the object is created in the DLL (with MSVC
> conventions). This would not be a problem if you only passed it
> back to the functions in the DLL. Instead you are trying to use
> it in an executable created by MinGW (GCC) and that does not,
> and will not, work.
> That said, I would think that any workaround *that actually works*
> to the situation are welcome.
> Why not put a minimal example (with an appropriate disclaimer) to
> the Wiki?
If think you know of a way to make it work, feel free to contribute
it; the Wiki relies on *your* contributions.
> (I assume Keith or Earnie will voice out their objections, as well
> as make me wish I was never born, if they feel it is inappropriate.
You may wish you had never been born, when I invite you to handle all
the questions, if it turns out that your method isn't as robust as you
thought it was. :-)
> And yes, I would insert a smiley here if didn't object to using
And I deliberately threw one in there. I tend to use them sparingly,
but I'm too lazy to type such explanations in their stead.