Re: Shared objects aka dynamic libraries

2014-01-23 Thread Mineko
aka dynamic libraries from a D code base? Currently for me DMD and LDC refuse to accept the existence of a -shared flag, and GDC always fails with some deeply incomprehensible messages about not finding _tls.* functions. There should be a page better than http://dlang.org/dll-linux.html I&#

Re: Shared objects aka dynamic libraries

2014-01-23 Thread Dicebot
On Thursday, 23 January 2014 at 19:40:42 UTC, Kagamin wrote: On Tuesday, 21 January 2014 at 17:53:38 UTC, Russel Winder It's linux users, who use linux. Windows users don't use windows for anything, they use software running on windows, lol. It awesome how this statement can be read as both li

Re: Shared objects aka dynamic libraries

2014-01-23 Thread Kagamin
On Tuesday, 21 January 2014 at 17:53:38 UTC, Russel Winder wrote: I'll have to get my wife's Windows 7 machine out to test all the D tool changes I am making. It is a real shame that anyone actually uses Windows for anything :-) It's linux users, who use linux. Windows users don't use windows

Re: Shared objects aka dynamic libraries

2014-01-21 Thread Jacob Carlborg
On 2014-01-21 18:53, Russel Winder wrote: I'll have to get my wife's Windows 7 machine out to test all the D tool changes I am making. It is a real shame that anyone actually uses Windows for anything :-) DMD works quite well with Wine, what I've heard. But that might not be reliable enough.

Re: Shared objects aka dynamic libraries

2014-01-21 Thread Dicebot
On Tuesday, 21 January 2014 at 17:53:38 UTC, Russel Winder wrote: Hummm…. it seems that DMD still tries to search libphobos2.a by default instead of libphobos2.so, so the -defaultlib=libphobos2.so is the difference between success and failure :-( As far as I understand shared one will become

Re: Shared objects aka dynamic libraries

2014-01-21 Thread Russel Winder
On Tue, 2014-01-21 at 15:59 +, Dicebot wrote: > Yes, support is relatively solid for DMD/Linux : > http://forum.dlang.org/post/minijortxmmyshyfn...@forum.dlang.org Hummm…. it seems that DMD still tries to search libphobos2.a by default instead of libphobos2.so, so the -defaultlib=libphobos2.s

Re: Shared objects aka dynamic libraries

2014-01-21 Thread Dicebot
Yes, support is relatively solid for DMD/Linux : http://forum.dlang.org/post/minijortxmmyshyfn...@forum.dlang.org Don't use Windows but it is said to be much more complicated there. For LDC/GDC support is not yet ready AFAIK.

Shared objects aka dynamic libraries

2014-01-21 Thread Russel Winder
I appear to be unable to use Google the last couple of days :-( so I admit defeat, expose my current ignorance, hopefully to quickly become enlightened. Is it possible to easily with DMD, LDC and/or GDC create shared objects aka dynamic libraries from a D code base? Currently for me DMD and LDC