Re: Registries

Rene Rivera <[email protected]>
Newsgroups gmane.comp.lib.boost.langbinding
Message-ID <[email protected]>
[2003-07-17] David Abrahams wrote:

>I think that most OSes have a mechanism where you can specify exactly
>which symbols are shared, but for C++ at least, on OSes other than
>windows, it's usually much too cumbersome to be worthwhile and
>requires knowledge of name mangling.  If I'm wrong about that I hope
>someone will correct me (Rene?).

Not totally wrong ;-) Doing the equivalent of DLLEXPORT on Linux is
something I have built into the build process of my project. Does not
require knowledge of the name mangling. What it does require is platform
specific linker knowledge, and access to tools that can manipulate linkable
objects. Those requirements are usually around for ELF type system (not just
Linux). All that said, it's probably still too cumbersome for general use.

Looking at the handy shared lib guide...

http://www.fortran-2000.com/ArnaudRecipes/sharedlib.html
Using static and shared libraries across platforms

Gives you some idea of other methods. The ones that mention doing a script
file for "ld" are the hard ones to implement.

Anyway, for simplicity, of maintenance and understanding I'd say use a
separete lanbinding shared library.


-- grafik - Don't Assume Anything
-- rrivera (at) acm.org - grafik (at) redshift-software.com
-- 102708583 (at) icq
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.