Boost logo

Boost :

From: Aleksander Demko (ademko_at_[hidden])
Date: 2004-07-26 13:47:56


On Mon, 26 Jul 2004, Vladimir Prus wrote:

> Reece Dunn wrote:
>
>
> > Would it be possible to have a mangle function, then you could do
> > something like:
> >

This is all well and good, but how about a simple C symbol loading
interface to start, where we just cast the things into what we
want, and then build on that? :)

I only suggest this because on all the dll-loading projects I
worked in, we just made all the "plug in" dlls export some single
predefined function or two. Upon loading the dll, the application
calls these extern "C"'ed functions. Within this, the dll then
continues to "register" its objects and other facilities within
this function, all in a nice C++ manner.

But if you really must do some mangling, perhaps some kind of
trickery done with macros and extern "C" (or extern "C" and little
template functions) can be used to define your own
multiplatform/compiler independant mangling scheme?

--
// scopira.org | ninjacoder.com //

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk