kxml and dub package manager.

holo via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sun Oct 18 16:57:27 PDT 2015


I want to add xml support to my application so i fetched kxml 
library with dub but it don't want to work for me. Steps and test 
code:

[holo at ultraxps kxml]$ cat dub.sdl
name "kxml"
description "A minimal D application."
copyright "Copyright © 2015, holo"
authors "holo"
dependencies "kxml" version="1.0.0"
[holo at ultraxps kxml]$ dub run
Performing "debug" build using dmd for x86_64.
kxml ~master: building configuration "application"...
source/app.d(1,8): Error: module kxml is in file 'kxml.d' which 
cannot be read
import path[0] = source/
import path[1] = /usr/include/dlang/dmd
dmd failed with exit code 1.
[holo at ultraxps kxml]$ cat source/app.d
import kxml;
import std.stdio;
import std.file;


struct instance
         {
            string id;
            string name;
            string type;
            string state;
         }


void main()
{

}

[holo at ultraxps kxml]$

How to make dub to work for me?


More information about the Digitalmars-d-learn mailing list