DUB fails to build a dynamic library on Linux

2014-12-14 Thread Gabor Mezo via Digitalmars-d
Hello, I've created a simple db dynamic lib project. dub.json: { "name": "node-d-sample", "description": "A minimal D application.", "copyright": "Copyright © 2014, gabor", "authors": ["gabor"], "dependencies": { }, "libs": [ "phobos2" ],

Re: DUB fails to build a dynamic library on Linux

2014-12-14 Thread Gabor Mezo via Digitalmars-d
On Sunday, 14 December 2014 at 16:06:25 UTC, Martin Nowak wrote: On 12/14/2014 03:50 PM, Gabor Mezo wrote: Hello, I've created a simple db dynamic lib project. https://github.com/D-Programming-Language/dub/issues/352 Thanks, I've did this, it finally build, but something is still not good.

Re: DUB fails to build a dynamic library on Linux

2014-12-14 Thread Gabor Mezo via Digitalmars-d
I've opened an other thread instead, because this is a different issue. It's there: http://forum.dlang.org/thread/aycvoeaurrpmuehat...@forum.dlang.org#post-aycvoeaurrpmuehatdwp:40forum.dlang.org

Caller of dynamic library crashes with SIGSEV if D code allocates anything on heap.

2014-12-14 Thread Gabor Mezo via Digitalmars-d
Hello, I've opened an other thread for this, because this is a different issue. Previous issue is there: http://forum.dlang.org/thread/zzjeajhjpzhnvgxqu...@forum.dlang.org#post-vuzttuewxyvuihubgtas:40forum.dlang.org The current issue is if I build a dynamic library with DUB and call extern

Re: DUB fails to build a dynamic library on Linux

2014-12-14 Thread Gabor Mezo via Digitalmars-d
Thank you for your quick help, that was it. I do (or at least I'm trying to do) hobbyist D programming as you guys, that's why I come here to cry at Sunday evening. :) Ok, I'm almost there. It builds with DUB/DMD, I can allocate stuff on the heap, so far so good. But if I invoke: dub --comp

Re: Caller of dynamic library crashes with SIGSEV if D code allocates anything on heap.

2014-12-14 Thread Gabor Mezo via Digitalmars-d
I's solved by ketmar: "did you called `rt_init()` for your dynamic library? you have to do that in the calling process. and don't forget to call `rt_term()` on exiting." Yea, I missed that. It works. Thanks.

Re: DUB fails to build a dynamic library on Linux

2014-12-14 Thread Gabor Mezo via Digitalmars-d
Actually I'm practicing D for about three months but this C interfacing mumbo jumbo is still missing for me. Ok, I'm go there if I'm stuck, thanks.

Re: Lost a new commercial user this week :(

2014-12-14 Thread Gabor Mezo via Digitalmars-d
On Sunday, 14 December 2014 at 20:44:17 UTC, Jacob Carlborg wrote: On 2014-12-14 09:37, Manu via Digitalmars-d wrote: They immediately made comments about goto-definition not working, and auto-completion not working reliably. I'm curious to know which tools they used to get autocompletion a