www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Linux DLL

reply "Mineko" <uminekorox gmail.com> writes:
So, I was doing some stuff with shared libraries and need some 
confirmation on what's going on with 
http://dlang.org/dll-linux.html

Is that page recent, or really old?

It's using printf and stuff so uhh.. Seems old.

Could anyone here perhaps give me a more recent explanation of 
how to do the bottom example, if it's not already? 
(http://dlang.org/dll-linux.html#dso10)

Using the standard phobos library, of course, for instance, I 
would have issues with fprintf and the stuff going on with 
stderror and error/dlerror.
Jan 03 2014
parent reply "Jeroen Bollen" <jbinero gmail.com> writes:
On Friday, 3 January 2014 at 20:31:09 UTC, Mineko wrote:
 So, I was doing some stuff with shared libraries and need some 
 confirmation on what's going on with 
 http://dlang.org/dll-linux.html

 Is that page recent, or really old?

 It's using printf and stuff so uhh.. Seems old.

 Could anyone here perhaps give me a more recent explanation of 
 how to do the bottom example, if it's not already? 
 (http://dlang.org/dll-linux.html#dso10)

 Using the standard phobos library, of course, for instance, I 
 would have issues with fprintf and the stuff going on with 
 stderror and error/dlerror.
It says on top "Preliminary and subject to change.", although that might have just been put in.
Jan 03 2014
parent reply "Mineko" <uminekorox gmail.com> writes:
On Friday, 3 January 2014 at 20:34:17 UTC, Jeroen Bollen wrote:
 On Friday, 3 January 2014 at 20:31:09 UTC, Mineko wrote:
 So, I was doing some stuff with shared libraries and need some 
 confirmation on what's going on with 
 http://dlang.org/dll-linux.html

 Is that page recent, or really old?

 It's using printf and stuff so uhh.. Seems old.

 Could anyone here perhaps give me a more recent explanation of 
 how to do the bottom example, if it's not already? 
 (http://dlang.org/dll-linux.html#dso10)

 Using the standard phobos library, of course, for instance, I 
 would have issues with fprintf and the stuff going on with 
 stderror and error/dlerror.
It says on top "Preliminary and subject to change.", although that might have just been put in.
Oh, thank you, can't believe I missed that.. Other than that, are there any better ways of doing the aforementioned?
Jan 03 2014
parent reply "Jeroen Bollen" <jbinero gmail.com> writes:
On Friday, 3 January 2014 at 20:37:06 UTC, Mineko wrote:
 On Friday, 3 January 2014 at 20:34:17 UTC, Jeroen Bollen wrote:
 On Friday, 3 January 2014 at 20:31:09 UTC, Mineko wrote:
 So, I was doing some stuff with shared libraries and need 
 some confirmation on what's going on with 
 http://dlang.org/dll-linux.html

 Is that page recent, or really old?

 It's using printf and stuff so uhh.. Seems old.

 Could anyone here perhaps give me a more recent explanation 
 of how to do the bottom example, if it's not already? 
 (http://dlang.org/dll-linux.html#dso10)

 Using the standard phobos library, of course, for instance, I 
 would have issues with fprintf and the stuff going on with 
 stderror and error/dlerror.
It says on top "Preliminary and subject to change.", although that might have just been put in.
Oh, thank you, can't believe I missed that.. Other than that, are there any better ways of doing the aforementioned?
I've asked a question related to DLL loading myself recently, but all I got from it was "making DLLs in D is terribly complicated and when you hear anything related to it just run". Here's the thread: http://forum.dlang.org/thread/sedvxeoxoslnzbeiylnn forum.dlang.org
Jan 03 2014
parent reply "Jeroen Bollen" <jbinero gmail.com> writes:
On Friday, 3 January 2014 at 20:48:29 UTC, Jeroen Bollen wrote:
 On Friday, 3 January 2014 at 20:37:06 UTC, Mineko wrote:
 On Friday, 3 January 2014 at 20:34:17 UTC, Jeroen Bollen wrote:
 On Friday, 3 January 2014 at 20:31:09 UTC, Mineko wrote:
 So, I was doing some stuff with shared libraries and need 
 some confirmation on what's going on with 
 http://dlang.org/dll-linux.html

 Is that page recent, or really old?

 It's using printf and stuff so uhh.. Seems old.

 Could anyone here perhaps give me a more recent explanation 
 of how to do the bottom example, if it's not already? 
 (http://dlang.org/dll-linux.html#dso10)

 Using the standard phobos library, of course, for instance, 
 I would have issues with fprintf and the stuff going on with 
 stderror and error/dlerror.
It says on top "Preliminary and subject to change.", although that might have just been put in.
Oh, thank you, can't believe I missed that.. Other than that, are there any better ways of doing the aforementioned?
I've asked a question related to DLL loading myself recently, but all I got from it was "making DLLs in D is terribly complicated and when you hear anything related to it just run". Here's the thread: http://forum.dlang.org/thread/sedvxeoxoslnzbeiylnn forum.dlang.org
Or SO on Linux. :D
Jan 03 2014
parent "Mineko" <uminekorox gmail.com> writes:
Thank you Jeroen, Dicebot's post was EXTREMELY helpful, and was 
more or less what I was looking for! :D
Jan 03 2014