Using dub
Rikki Cattermole via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Mon Jan 26 23:25:12 PST 2015
On 27/01/2015 8:03 p.m., Joel wrote:
> I'm having trouble using dub. Nothing seems to work (-h works though). I
> would like an example or two of how to get an app going (stand alone for
> now). I'm using the Mac OS.
Lets use Devisualization.Window as an example.
Assuming in a safe directory and dmd/dub on PATH variable:
$ git clone https://github.com/Devisualization/window.git
$ cd window
$ dub build de_window:test
$ ./de_window_test
For simple test app:
$ mkdir myapp
$ cd myapp
$ dub init
$ nano source/app.d
// edit
// ctrl + x, y
$ dub build
$ ./myapp
// or
$ dub run
More information about the Digitalmars-d-learn
mailing list