www.digitalmars.com         C & C++   DMDScript  

c++.command-line - Exporting symbols from an executable

Is there a way to perform back linking with optlink? What I'm getting at is that
I'd like my executable to export it's symbols so that DLLs can have access to
them. I'll be linking to DLLs at runtime with LoadLibrary() and the DLL code may
have to access symbols from the executable.

GNU ld has an option "--export-dynamic" which tells the linker to export all
symbols of the executable so they can be seen by dynamic libraries loaded at
runtime. Other linkers I use, like Solaris ld, always perform exporting of
symbols from the executable by default. Is this how optlink works?

Is there an equivalent option available with optlink?

Thanks for the help,
Feb 18 2004