[Prev][Next][Index][Thread]

Re: Harlequin



Huh?
Isn't
extern "C"
{
extern "C"
{
int printf(const char* ...);
}
}

legal? Visual C++ 5 and 6 and gcc accept it. Or did Sun actually provide the
C library with C++ linkage? That would be nice..but not necessarily be a
problem (as long as it is available both ways).

 - Jay

>
>According to Tom Emerson  <tree@tiac.net>:
>:Sun Workshop C++ 5.x is actually pretty decent: they finally support
>
>Of course, there are some interesting side effects of the new Sun C++
compiler.
>People may find they need to make some changes to their code or headers if
>they wrapped any system headers with extern "C" { } wrappings.  The latest
>compiler comes with C++ compatible headers - resulting in syntax errors
>if the application attempted to 'do what was necessary' ...
>
>--
><URL: mailto:lvirden@cas.org> Quote: Saving the world before bedtime.
><*> O- <URL: http://www.purl.org/NET/lvirden/>
>Unless explicitly stated to the contrary, nothing in this posting
>should be construed as representing my employer's opinions.





References: