Re: Dynamically Loading a D DLL From a C Program in Linux

2014-10-25 Thread MGW via Digitalmars-d-learn
// 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;

Dynamically Loading a D DLL From a C Program in Linux

2014-10-24 Thread John McFarlane via Digitalmars-d-learn
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

Re: Dynamically Loading a D DLL From a C Program in Linux

2014-10-24 Thread John McFarlane via Digitalmars-d-learn
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

Re: Dynamically Loading a D DLL From a C Program in Linux

2014-10-24 Thread bachmeier via Digitalmars-d-learn
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

Re: Dynamically Loading a D DLL From a C Program in Linux

2014-10-24 Thread John McFarlane via Digitalmars-d-learn
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.