DLLs and friends
Jonathan M Davis
jmdavisProg at gmx.com
Sat Nov 24 13:20:40 PST 2012
On Saturday, November 24, 2012 21:45:51 David Nadlinger wrote:
> On Saturday, 24 November 2012 at 20:08:10 UTC, Ellery Newcomer
>
> wrote:
> > with dmd on linux, apparently __declspec(dllexport) <->
> > [nothing]. Noticed this when trying to link to the python c
> > api. But it could just be python isn't using dllexport.
>
> There is no such thing as dllimport/dllexport on Linux,
> everything is "public" by default. See
> http://gcc.gnu.org/wiki/Visibility for a description of a
> mechanism for hiding symbols on Linux/GCC.
And thank goodness for that. The existence of export is my number one
complaint about Windows programming. I am so sick and tired of running into
compilation issues due to it that it's not even funny. Linux's shared library
model is _so_ much better than Windows' model, and that's only one of the
reasons why.
- Jonathan M Davis
More information about the Digitalmars-d
mailing list