Am 24.11.2012 22:20, schrieb Jonathan M Davis:
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


Funny I prefer the private by default way of Windows, and Aix may I add.

But I started developing for Windows 3.1 back in the day, while watching some friends do Amiga 500 coding, and only later on discovered the ways of UNIX.


--
Paulo

Reply via email to