How to use listener.d example?

rikki cattermole rikki at cattermole.co.nz
Tue Sep 4 12:49:40 UTC 2018


On 05/09/2018 12:10 AM, Marcin wrote:
> ""
> Am i doing it right?
> 
> I've unpacked vibe.d-master to my "C:\D\dtwo\src"
> commands in cmd:
> 
> cd C:\D\dtwo\windows\bin\
> echo "vibe.d-master is a folder"
> dmd -lib C:\D\dtwo\src\vibe.d-master\core\vibe\appmain.d 
> C:\D\dtwo\src\vibe.d-master\http\vibe\http\server.d
> 
> 
> no wai, Ill just paste the vibe.d-master to my code location and add 
> more arguments.
> 
> dub fetch vibe-d
> downloaded something
> dub run vibe-d
> runs something
> dub test vibe-d
> 
> vibe-d:redis 0.8.4: building configuration "library"...
> vibe-d:web 0.8.4: building configuration "library"...
> vibe-d 0.8.4: building configuration "vibe-d-test-vibe-core"...
> Linking...
> Error: linker exited with status 1
> C:\D\dtwo\windows\bin\dmd.exe failed with exit code 1.
> 
> still don't work
> 
> 
> 
> I love programming... after 37 h of tryin to force run compiler.

You didn't need to download or manually fetch vibe-d yourself (it won't 
work this way FYI).
Just make sure dmd (windows/bin directory) is on your PATH variable, and 
you're good to go for the below example.

$ cd c:/projects/test_vibed
$ dub init
json
someprojectname
my description
Marcin
proprietary
Copyright 2018
vibe-d
\n
$ dub run


More information about the Digitalmars-d-learn mailing list