Re: Building with dub fails on Ubuntu 16.10.

2016-12-05 Thread moe via Digitalmars-d-learn
On Monday, 5 December 2016 at 07:32:21 UTC, Daniel Kozak wrote: On Saturday, 3 December 2016 at 16:07:47 UTC, moe wrote: On Sunday, 11 September 2016 at 02:17:21 UTC, Vlasov Roman wrote: Hello, guys. I tried to build HelloWorld with dub, but i got strange linker error: [...] I just

Re: Building with dub fails on Ubuntu 16.10.

2016-12-03 Thread moe via Digitalmars-d-learn
On Saturday, 3 December 2016 at 16:07:47 UTC, moe wrote: On Sunday, 11 September 2016 at 02:17:21 UTC, Vlasov Roman wrote: Hello, guys. I tried to build HelloWorld with dub, but i got strange linker error: [...] I just switched from Windows to linux (arch) and got the exact same problem.

Re: Building with dub fails on Ubuntu 16.10.

2016-12-03 Thread moe via Digitalmars-d-learn
On Sunday, 11 September 2016 at 02:17:21 UTC, Vlasov Roman wrote: Hello, guys. I tried to build HelloWorld with dub, but i got strange linker error: [...] I just switched from Windows to linux (arch) and got the exact same problem. Did you resolve this yet? I'm not very experienced with

Re: Using .lib and .dll in D applications

2016-06-22 Thread moe via Digitalmars-d-learn
On Wednesday, 22 June 2016 at 05:34:33 UTC, Mike Parker wrote: On Wednesday, 22 June 2016 at 03:06:29 UTC, moe wrote: I meant like this: - PluginContract // not a dub project, just some folder -- iplugin.d - TestApp // all files for the app (separate project) -- packages

Re: Using .lib and .dll in D applications

2016-06-21 Thread moe via Digitalmars-d-learn
On Wednesday, 22 June 2016 at 01:40:47 UTC, Mike Parker wrote: On Tuesday, 21 June 2016 at 23:59:54 UTC, moe wrote: I had some time to try it out and I finally got it to work. I have only tried in windows so far but there was a pitfall in windows. Your dll need a DllMain entry to compile. This

Re: Using .lib and .dll in D applications

2016-06-21 Thread moe via Digitalmars-d-learn
I had some time to try it out and I finally got it to work. I have only tried in windows so far but there was a pitfall in windows. Your dll need a DllMain entry to compile. This was the only thing that was missing from your information. The rest worked perfectly. This may be obvious to most

Re: Using .lib and .dll in D applications

2016-06-20 Thread moe via Digitalmars-d-learn
On Monday, 20 June 2016 at 13:51:15 UTC, Mike Parker wrote: interface Plugin { bool initialize(); void terminate(); Throwable getLastException(); SomeObject getSomeObject(); void returnSomeObject(SomeObject); } Sorry, I forgot a couple of commments. I did explain it in the

Re: Using .lib and .dll in D applications

2016-06-20 Thread moe via Digitalmars-d-learn
Thanks everyone for the info. It is very much appreciated! What works for me right now is dealing with various packages (dub packages) and use them in projects. I previously made too many assumptions about how lib's and dll's work. It's much clearer now. Where I still have a problem is with

Re: Using .lib and .dll in D applications

2016-06-19 Thread moe via Digitalmars-d-learn
On Sunday, 19 June 2016 at 18:00:07 UTC, Mike Parker wrote: On Sunday, 19 June 2016 at 17:33:43 UTC, moe wrote: Unfortunatelly I still don't get it. I would like to have an independant project "dbar". The created lib is then used in another project "dfoo". Assuming that "dfoo" has no

Re: Using .lib and .dll in D applications

2016-06-19 Thread moe via Digitalmars-d-learn
On Sunday, 19 June 2016 at 17:33:43 UTC, moe wrote: On Sunday, 19 June 2016 at 16:31:40 UTC, Mike Parker wrote: [...] Thanks for the reply. Unfortunatelly I still don't get it. I would like to have an independant project "dbar". The created lib is then used in another project "dfoo".

Re: Using .lib and .dll in D applications

2016-06-19 Thread moe via Digitalmars-d-learn
On Sunday, 19 June 2016 at 16:31:40 UTC, Mike Parker wrote: On Sunday, 19 June 2016 at 15:35:04 UTC, moe wrote: I am new to d and doing some small test apps at the moment to learn d. Currently I must be missing something basic here. I have installed dub as a project manager and I am trying to

Using .lib and .dll in D applications

2016-06-19 Thread moe via Digitalmars-d-learn
Hello, I am new to d and doing some small test apps at the moment to learn d. Currently I must be missing something basic here. I have installed dub as a project manager and I am trying to use a .lib file in an app. However, I can not use a module from the .lib file. I get the following