digitalmars.D.learn - Runtime.loadLibrary() on Linux
- F i L (5/5) May 10 2012 Is it possible?
- F i L (2/2) May 10 2012 I should not I've only tried with DMD (so far). I'll try with LDC
- Jacob Carlborg (7/12) May 10 2012 No, not using "rt_loadLibrary". You can still use the good old C
- F i L (2/16) May 10 2012 Ah, thank you. That set me on the right track.
- Sean Kelly (3/7) May 11 2012 It should be made to work on Linux. Interested in submitting a
- =?UTF-8?B?QWxleCBSw7hubmUgUGV0ZXJzZW4=?= (4/12) May 11 2012 Isn't it just a matter of dlopen on most (if not all) POSIX impls?
- F i L (4/6) May 11 2012 alexrp beat me to it:
Is it possible? I get a message "rt_loadLibrary() not supported on Posix" when I try. Is there something I'm doing wrong or is loading shared libraries not supported at all on Linux systems? thanks.
May 10 2012
I should not I've only tried with DMD (so far). I'll try with LDC and GDC in the morning.
May 10 2012
On 2012-05-10 09:09, F i L wrote:Is it possible? I get a message "rt_loadLibrary() not supported on Posix" when I try. Is there something I'm doing wrong or is loading shared libraries not supported at all on Linux systems? thanks.No, not using "rt_loadLibrary". You can still use the good old C function "dlopen". I think "rt_loadLibrary" does some extra stuff that the corresponding Windows function for "dlopen" doesn't do for shared D libraries. -- /Jacob Carlborg
May 10 2012
On Thursday, 10 May 2012 at 11:11:14 UTC, Jacob Carlborg wrote:On 2012-05-10 09:09, F i L wrote:Ah, thank you. That set me on the right track.Is it possible? I get a message "rt_loadLibrary() not supported on Posix" when I try. Is there something I'm doing wrong or is loading shared libraries not supported at all on Linux systems? thanks.No, not using "rt_loadLibrary". You can still use the good old C function "dlopen". I think "rt_loadLibrary" does some extra stuff that the corresponding Windows function for "dlopen" doesn't do for shared D libraries.
May 10 2012
On Thursday, 10 May 2012 at 07:09:43 UTC, F i L wrote:Is it possible? I get a message "rt_loadLibrary() not supported on Posix" when I try. Is there something I'm doing wrong or is loading shared libraries not supported at all on Linux systems?It should be made to work on Linux. Interested in submitting a pull request? The function is in src/rt/dmain2.d.
May 11 2012
On 11-05-2012 20:46, Sean Kelly wrote:On Thursday, 10 May 2012 at 07:09:43 UTC, F i L wrote:Isn't it just a matter of dlopen on most (if not all) POSIX impls? -- - AlexIs it possible? I get a message "rt_loadLibrary() not supported on Posix" when I try. Is there something I'm doing wrong or is loading shared libraries not supported at all on Linux systems?It should be made to work on Linux. Interested in submitting a pull request? The function is in src/rt/dmain2.d.
May 11 2012
Sean Kelly wrote:It should be made to work on Linux. Interested in submitting a pull request? The function is in src/rt/dmain2.d.alexrp beat me to it: https://github.com/D-Programming-Language/dmd/pull/941 https://github.com/D-Programming-Language/druntime/pull/211
May 11 2012