DUB problems

yawniek via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Thu Dec 31 01:09:20 PST 2015


On Thursday, 31 December 2015 at 08:51:42 UTC, Daniel Kozak wrote:
> I try to build vibe-d Hello world app with dub, but I have many 
> problems with dub, nothing works at all
>
> Error: Output file 'client.o' for module 'vibe.http.client' 
> collides with previous module 'vibe.db.mongo.client'. See the 
> -oq option
>
> and allmost nothing works as expected. How can I do one simple 
> thing:
>
> Compile vibe.d with libasync and with ldc compiler

os? versions? it kind of depends.

i just tested this on linux.

dub init -t vibe.d foo
cd foo
cat dub.json
{
	"name": "foo",
	"description": "A simple vibe.d server application.",
	"copyright": "Copyright © 2015, yannick",
	"authors": ["yannick"],
	"dependencies": {
		"vibe-d": "~>0.7.26"
	},
	"versions": ["VibeDefaultMain"],
"subConfigurations": { "vibe-d": "libasync"}
}

ws01% cat dub.selections.json
{
	"fileVersion": 1,
	"versions": {
		"memutils": "0.4.3",
		"vibe-d": "0.7.26",
		"libevent": "2.0.1+2.0.16",
		"libev": "5.0.0+4.04",
		"openssl": "1.1.4+1.0.1g",
		"libasync": "0.7.5"
	}
}

dub build  --compiler=ldc -b release --combined
ldc --version
LDC - the LLVM D compiler (0.16.1):
   based on DMD v2.067.1 and LLVM 3.7.0
dub --version
DUB version 0.9.24-rc.2+18-g4fece3c

note the dub switches
compiling in debug mode or without --combined crashes!



More information about the Digitalmars-d-learn mailing list