|
![](/i/fill.gif) |
Mathias Broxvall <mbr### [at] swipnet se NOSPAM> wrote in article
<1d8### [at] dialup122-3-36 swipnet se>...
>
> > Yeah, it easy, you just write the public interfaces in C, rather
than C++,
> > then name mangling doesn't matter as all the mangled names are kept
within
> > the library.
>
> Great! Sorry if this question isn't realy about programming povray:
>
> Are there a standard for it? I have seen the following in some
> of my system headers, is it the same on other platform to?
>
> extern "C" {
> ...
> /* All my great C prototypes here */
> ...
> }
Yeah, that's the way to do it. I don't know how platform independent it is
though, so you may run into problems and I've a feeling, even if it is part
of the current C++ standard, it may well be dropped when the ANSI C++
standard is finally released, sometime this year (hopefully), but,
hopefully the name mangling problem will be cleared up as well.
--
Scott Hill
Sco### [at] DDLinks co uk
Software Engineer (and all round nice guy)
"The best trick the devil ever pulled was convincing people he didn't
exist..."
- Verbal Kint.
"the Internet is here so we can waste time talking about nothing in
particular when we should be working" - Marcus Hill.
Post a reply to this message
|
![](/i/fill.gif) |