// MGW 05.01.14
// We model in D object C ++ QByteArray from Qt.
//
// Windows: dmd st1.d
// Linux: dmd st1.d -L-ldl
import core.runtime; // Load DLL for Win
import std.stdio;// writeln
version(linux) {
import core.sys.posix.dlfcn;
I'm following the preliminary example Dynamically Loading a D
DLL From a C Program here: http://dlang.org/dll-linux.html#dso9
Firstly, my output is different:
+main()
libdll.so is loaded
dll() function is found
dll()
unloading libdll.so
-main()
If looks like static this and ~this are not
Apologies. That should be Ubuntu 14.04.
On Friday, 24 October 2014 at 20:59:20 UTC, John McFarlane wrote:
I'm following the preliminary example Dynamically Loading a D
DLL From a C Program here: http://dlang.org/dll-linux.html#dso9
Firstly, my output is different:
+main()
libdll.so is loaded
I can't answer the first question, but for the second, I've given
an example here:
http://forum.dlang.org/post/zfdvrwvgavykauczb...@forum.dlang.org
I've done that many, many times and do not see any problems
related to the runtime.
On Friday, 24 October 2014 at 20:59:20 UTC, John McFarlane
On Friday, 24 October 2014 at 22:33:09 UTC, bachmeier wrote:
I can't answer the first question, but for the second, I've
given an example here:
http://forum.dlang.org/post/zfdvrwvgavykauczb...@forum.dlang.org
I've done that many, many times and do not see any problems
related to the runtime.