www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - (Linux) Which compilers should be working now with shared

reply Marco Leise <Marco.Leise gmx.de> writes:
Since GtkD offers the option to build shared libraries, I was
wondering which of the 3 compilers (SDC excluded for now,
sorry :)) can handle that at the moment.
I think DMD does and GDC doesn't (at least the Wiki says so).
What about LDC?

-- 
Marco
Nov 15 2013
next sibling parent "Dicebot" <public dicebot.lv> writes:
Only DMD does shared right now.
Nov 15 2013
prev sibling next sibling parent reply Marco Leise <Marco.Leise gmx.de> writes:
Am Fri, 15 Nov 2013 20:37:53 +0100
schrieb Marco Leise <Marco.Leise gmx.de>:

 Since GtkD offers the option to build shared libraries, I was
 wondering which of the 3 compilers (SDC excluded for now,
 sorry :)) can handle that at the moment.
 I think DMD does and GDC doesn't (at least the Wiki says so).
 What about LDC?
Oops, this was answered with "not ready yet" a few topics earlier. Ok, then static D libs only for now. -- Marco
Nov 15 2013
parent reply "Martin Nowak" <code dawg.eu> writes:
On Friday, 15 November 2013 at 20:17:38 UTC, Marco Leise wrote:
 Oops, this was answered with "not ready yet" a few topics
 earlier. Ok, then static D libs only for now.
That applies only to loading, linking shared libraries works.
Nov 16 2013
next sibling parent Marco Leise <Marco.Leise gmx.de> writes:
Am Sat, 16 Nov 2013 14:00:53 +0100
schrieb "Martin Nowak" <code dawg.eu>:

 On Friday, 15 November 2013 at 20:17:38 UTC, Marco Leise wrote:
 Oops, this was answered with "not ready yet" a few topics
 earlier. Ok, then static D libs only for now.
That applies only to loading, linking shared libraries works.
That reads like "all compilers can link against shared libraries, but none can actually load any into the process". That's probably not what you meant to say, right? At least "Hello world" with phobos.so seems to work with DMD. Or does loading D libraries through libdl in particular fail? -- Marco
Nov 16 2013
prev sibling parent reply "qznc" <qznc web.de> writes:
On Saturday, 16 November 2013 at 13:00:54 UTC, Martin Nowak wrote:
 On Friday, 15 November 2013 at 20:17:38 UTC, Marco Leise wrote:
 Oops, this was answered with "not ready yet" a few topics
 earlier. Ok, then static D libs only for now.
That applies only to loading, linking shared libraries works.
I think telling anybody "shared libraries do (not) work" is too simplistic. Is there an overview, what does and what does not work with shared libraries? I envision a matrix with one axis "dmd, gdc, ldc" and one axis "linking shared C library, loading/unloading shared C libraries, link shared D library into D, link shared D library into C, ..."
Nov 16 2013
parent Ellery Newcomer <ellery-newcomer utulsa.edu> writes:
On 11/16/2013 02:40 PM, qznc wrote:
 On Saturday, 16 November 2013 at 13:00:54 UTC, Martin Nowak wrote:
 On Friday, 15 November 2013 at 20:17:38 UTC, Marco Leise wrote:
 Oops, this was answered with "not ready yet" a few topics
 earlier. Ok, then static D libs only for now.
That applies only to loading, linking shared libraries works.
I think telling anybody "shared libraries do (not) work" is too simplistic. Is there an overview, what does and what does not work with shared libraries? I envision a matrix with one axis "dmd, gdc, ldc" and one axis "linking shared C library, loading/unloading shared C libraries, link shared D library into D, link shared D library into C, ..."
and then another axis for dmdfe/druntime release, and then another axis for platform, and then another axis for architecture and then this becomes maybe a bit much for a wiki system to handle. But I would like something like this too.
Nov 17 2013
prev sibling parent "David Nadlinger" <code klickverbot.at> writes:
On Friday, 15 November 2013 at 19:38:10 UTC, Marco Leise wrote:
 What about LDC?
As I just noted in another thread, the DMD 2.064 branch of LDC now uses the same module discovery/runtime startup scheme on Linux as DMD. So, thanks to Martin's awesome work, it is only a matter of working any remaining small issues out at this point. David
Nov 16 2013