Should this work: export extern(C) auto ...

Robert M. Münch via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Wed Mar 18 08:50:16 PDT 2015


Windows, 32-Bit, DLL:

export extern(C) struct1 struct1(){
  struct1 x;
  return(x);
}

export extern(C) auto struct2(){
  struct1 x;
  return(x);
}

struct1 is visible in the DLL, struct2 is not visible in the DLL.

-- 
Robert M. Münch
http://www.saphirion.com
smarter | better | faster



More information about the Digitalmars-d-learn mailing list