Perfect Thanks!
long in D and long in C++ are different types. You should use
c_long from core.stdc.config to interface with C/C++ functions.
I didn't look closely, but since you used the "long" type my
guess is that's the problem. long in D is always 64 bit, but in C
is sometimes 32 bit and sometimes 64 bit.
On the D side, instead of writing "long", import
core.stdc.config; and use c_long.
Or just use int on both sides, that shou
Hello all! I am having trouble with using a c++ shared object
file with D.
I am running Linux Mint 32 bit. I am using the 32 bit version of
DMD.
For some reason any extra variables I pass to the C++ function
have the value 0.
Even when I specifically pass it something else.
---