In article <bg6k36$6fc$>,
Greg Comeau <> wrote:
>In article <>,
>Victor Bazarov <> wrote:
>>build some kind of interface guaranteed not to have
>>its name mangled, e.g. by declaring it 'extern "C" '.
>
>Actually, that's not guaranteed, but an implementation
>detail. That said, it does seem universally implemented
>as not having its name mangled.
Which I should also point out does not guarantee that
the function can still be called. After all, not even
two C compilers may be able to call it, so there is
certainly no requirement that a C++ compiler must be
able to. So tred cautiously, and be aware of the
compilers, their options settings, and what the respective
vendors say about this.
--
Greg Comeau/ 4.3.0.1: FULL CORE LANGUAGE, INCLUDING TC1
Comeau C/C++ ONLINE ==>
http://www.comeaucomputing.com/tryitout
World Class Compilers: Breathtaking C++, Amazing C99, Fabulous C90.
Comeau C/C++ with Dinkumware's Libraries... Have you tried it?