www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Embedding dll in a D project

reply "CallToDuty" <null dlang.org> writes:
Is it possible to embed a dll file within dub project? and if 
yes, how?
Jun 16 2015
next sibling parent "John Colvin" <john.loughran.colvin gmail.com> writes:
On Tuesday, 16 June 2015 at 16:42:31 UTC, CallToDuty wrote:
 Is it possible to embed a dll file within dub project? and if 
 yes, how?
Do you want to write the DLL in D or another language?
Jun 16 2015
prev sibling parent reply "John Colvin" <john.loughran.colvin gmail.com> writes:
On Tuesday, 16 June 2015 at 16:42:31 UTC, CallToDuty wrote:
 Is it possible to embed a dll file within dub project? and if 
 yes, how?
Have you tried just putting it in the root directory of the project and adding the relevant name to the "libs" setting in your dub.json ?
Jun 16 2015
parent reply "CallToDuty" <null dlang.org> writes:
On Tuesday, 16 June 2015 at 16:57:52 UTC, John Colvin wrote:
 On Tuesday, 16 June 2015 at 16:42:31 UTC, CallToDuty wrote:
 Is it possible to embed a dll file within dub project? and if 
 yes, how?
Have you tried just putting it in the root directory of the project and adding the relevant name to the "libs" setting in your dub.json ?
Thanks for the hint, I just tried it now - I'm getting the following error when trying to build the project: [...] libcurl.lib Error 43: Not a Valid Library File --- errorlevel 1 FAIL [...] dynamicLibrary
Jun 16 2015
parent "John Colvin" <john.loughran.colvin gmail.com> writes:
On Tuesday, 16 June 2015 at 17:32:33 UTC, CallToDuty wrote:
 On Tuesday, 16 June 2015 at 16:57:52 UTC, John Colvin wrote:
 On Tuesday, 16 June 2015 at 16:42:31 UTC, CallToDuty wrote:
 Is it possible to embed a dll file within dub project? and if 
 yes, how?
Have you tried just putting it in the root directory of the project and adding the relevant name to the "libs" setting in your dub.json ?
Thanks for the hint, I just tried it now - I'm getting the following error when trying to build the project: [...] libcurl.lib Error 43: Not a Valid Library File --- errorlevel 1 FAIL [...] dynamicLibrary
This is probably some windows object file format thing. Not my area. Someone who knows about windows help this guy?
Jun 17 2015