|
Boost : |
From: Stefan Seefeld (sseefeld_at_[hidden])
Date: 2004-12-08 12:51:05
> From: Peter Dimov [mailto:pdimov_at_[hidden]]
> > Is your advice
> > above simply due to a limitation with MSVC ?
>
> It seems so. From a quick test, g++ and bcc32 do return C++
> classes from
> extern "C" functions, only MSVC emits an error. I'm not sure
> whether such a
> function makes sense, though. If you suppress name mangling,
> presumably
> because two different compilers mangle names differently,
> what are the
> chances that the object layout will be the same?
Oh, ABI compatibility is an entirely different issue, I agree.
However, if you want to write your own component model you
have to use an entry point with extern C linkage, even though
the whole thing will be compiled with the same toolchain.
Regards,
Stefan
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk