DLL €rror: D calling D extern(C) code

Heinz malagana15 at yahoo.es
Tue Feb 10 09:26:56 PST 2009


Hello everyone.
I've been using DLL's in D for a long time but just recently i'm having a problem. Lets see if someone can help me a bit.

I have several lines of code but i'll use an example from the DMD site wich is almost the same come.

Read the DMD site about DLL's here: http://www.digitalmars.com/d/1.0/dll.html

Check for the section "D code calling D code in DLLs".

If you extern(C) all exports in mydll.d and change all symbols in test.d to their C respectives, when running you'll get access violation.

Any ideas?


More information about the Digitalmars-d-learn mailing list