Re: Compiling to shared library with static dependencies

2016-12-14 Thread Tanel L via Digitalmars-d
First of all thanks Johan for urging me to compile it with only with that flag. It worked! Previously I tried to compile it with only BUILD_SHARED or both - and that failed. But I got it working. Thanks! More details below. On Wednesday, 14 December 2016 at 21:41:53 UTC, Relja Ljubobratovic

Re: Compiling to shared library with static dependencies

2016-12-14 Thread Tanel L via Digitalmars-d
Hi, thanks for the answer. I had tried disabling all imports, but now I created a clean new project to test this - it worked. After that I moved the compiling and linking over to DUB, with dependencies: dependency "dcv" version="0.1.7" dependency "mir" version="0.22.0" targetPath "output"

Compiling to shared library with static dependencies

2016-12-14 Thread Tanel L via Digitalmars-d
Hello, I am very new to the D world - but serious in moving over to it after I have seen what a cool language it really is. I am trying to incorporate D into our main product as an externally loadable module. Basically I have a minimal project: ./app.d ./helpers/image.d (mir and dcv