Open MPI with D

Max Samukha maxter at spambox.com
Fri Nov 25 09:30:13 PST 2011


On 11/25/2011 06:52 PM, Andrei Alexandrescu wrote:
>
> As I wrote, on OSX the definitions do link so they exist.
>
> Andrei

Are you defining the variables or referencing them?

extern(C) int x; means definition and of course it will link because it 
is you who defines the variable.

extern extern(C) int x; means declaration and won't link if there is no 
definition somewhere else.

I know that standard libs in MinGW gcc, DMC and MSVC do define those 
variables. I doubt they exist in non-MinGW gcc, including the one used 
on OSX.





More information about the Digitalmars-d mailing list