Open MPI with D
doob at me.com
Fri Nov 25 08:04:30 PST 2011
On 2011-11-25 13:27, Andrei Alexandrescu wrote:
> On 11/25/11 2:13 AM, Jude Young wrote:
>> Is there an easy way to turn D style (string args) into C style?
> Hm, I expected this would work:
> extern(C) int __argc;
> extern(C) char** __argv;
> The symbols do exist at least on OSX (no linker error) but they are both
> zero, so apparently druntime doesn't initialize them.
As I wrote in another message in this thread, use these:
Mac OS X:
extern (C) char*** _NSGetEnviron();
extern (C) extern char** environ;
More information about the Digitalmars-d