On 2012-10-04 21:30, timotheecour wrote:
Even if I don't need to redefine:
As I was explaining in the first post, my original problem was that
calling the existing (non-templated, non-modified) extern(C)
std_stdio_static_this() seems to have no effect: a call to writeln(0)
will cause a runtime crash in the shared lib.
Yes, that's what how I understood it. Do you want to do both?
Even after a call to Runtime.initialize. So far, only adding a templated
version std_stdio_static_this2()() and calling it allows writeln(0) to
work.
I wish somebody had an explanation why std_stdio_static_this() doesn't
work but std_stdio_static_this2()() works.
I have no idea. Do you have a small test case to show, including how you
compiled it?
--
/Jacob Carlborg