Allocating memory in D shared library when accessed from C++

Andrej Mitrovic andrej.mitrovich at gmail.com
Mon Dec 19 17:22:01 PST 2011


test.cpp: http://www.ideone.com/uh7vN
DLibrary.d: http://www.ideone.com/fOLN8

$ g++ test.cpp
$ dmd -ofDLibrary.dll DLibrary.d
$ a.exe
$ 9


More information about the Digitalmars-d-learn mailing list