testc.c ======= int foo; test.d ====== extern(C) { extern int foo; } void main() { foo = 1; } > dmc -c testc.c && dmd test.d testc.obj && test.exe object.Error: Access Violation
Err, what's wrong with the extern declaration? The example compiles and links fine for me today. Closing as this bug is from 6 years ago, but please reopen if you can provide more details or a test case exhibiting the problem today.
(In reply to Vladimir Panteleev from comment #1) > Err, what's wrong with the extern declaration? > > The example compiles and links fine for me today. (Forgot to add - also runs without an Access Violation)