Re: Visibility of compiler symbols between executables and DLLs

2005-09-26 Thread Charles Wilson
Brian Dessent wrote: Max Bowsher wrote: I'm fairly sure that it is impossible. Actually, it might be possible if there was a flag to convice GCC to add an import table to the built .exe, but last time I investigated that, there was no such flag. But even if that was possible, the .dll would ne

Re: Visibility of compiler symbols between executables and DLLs

2005-09-26 Thread Nick Glencross
Max, Thanks, that's the conclusion that I had come to. On other UNIX-based platforms it's possible without actually linking with the .exe, provided you have compiled with the right flags (-shared on Linux, or -E on HP-UX). With this done the .exe exposes its global symbols to subsequently loaded l

Re: Visibility of compiler symbols between executables and DLLs

2005-09-26 Thread Christopher Faylor
On Mon, Sep 26, 2005 at 02:32:25AM -0700, Brian Dessent wrote: >Max Bowsher wrote: > >> I'm fairly sure that it is impossible. Actually, it might be possible if >> there was a flag to convice GCC to add an import table to the built .exe, >> but last time I investigated that, there was no such flag.

Re; Visibility of compiler symbols between executables and DLLs

2005-09-26 Thread Danny Smith
Nick Glencross wrote: > On many platforms compilation symbols in an executable are not made > visible to its Shared Library/DLLs by default, but this can often be > overridden with a compiler flag to change the policy. My question in a > nutshell then is whether cygwin has the ability to have a DL

Re: Visibility of compiler symbols between executables and DLLs

2005-09-26 Thread Brian Dessent
Max Bowsher wrote: > I'm fairly sure that it is impossible. Actually, it might be possible if > there was a flag to convice GCC to add an import table to the built .exe, > but last time I investigated that, there was no such flag. But even if that > was possible, the .dll would need to explicitly

Re: Visibility of compiler symbols between executables and DLLs

2005-09-26 Thread Max Bowsher
Nick Glencross wrote: Guys, I've done some research on this and don't believe that it's a perennial question that keeps coming up! On many platforms compilation symbols in an executable are not made visible to its Shared Library/DLLs by default, but this can often be overridden with a compiler

Visibility of compiler symbols between executables and DLLs

2005-09-26 Thread Nick Glencross
Guys, I've done some research on this and don't believe that it's a perennial question that keeps coming up! On many platforms compilation symbols in an executable are not made visible to its Shared Library/DLLs by default, but this can often be overridden with a compiler flag to change the polic