On Thu, 30 Oct 2014 10:59:13 GMT, Suliman wrote:

But I do not get such errors when I am trying to compile all with dmd:
dmd findlinks.d dhtmlparser.d quoteescaper.d

it's produce proper exe file.

If suggest, that I created proper dub.json file, how I can use it.

Now I have small app named find_links.d I put it in new dub project. And what next? How to link it's with DHTMLParser?

If you want to produce an executable file, use "targetType": "executable". You can also create multiple configurations, one to build a stand-alone application and one to build as a library. The easiest way is to put the main() function in a separate "source/app.d" file and then not specify a "targetType" at all. DUB will then automatically infer an "application" and a "library" configuration (where "application" is the default when building separately).

If you want to create a library together with a set of little utility applications, the cleanest way would be to use "subPackages" for the utilities.