Re: build dustmite
On Sunday, 9 March 2014 at 12:14:43 UTC, bioifornatics wrote: Firstly build way describe at https://github.com/CyberShadow/DustMite/wiki/Building-DustMite seem to be wrong as dsplit.d was rename as splitter.d Anyone can edit the wiki. But this was fixed now. Secondly build fail take a look behind $ ldc2 -release -w -g -O3 dustmite.d splitter.d -of dustmite splitter.d(262): Error: delegate splitter.DSplitter.__lambda22 function literals cannot be class members splitter.d(284):called from here: (*_error_() From what i can tell line 284 references pull 2824, which was merged just recently. Dustmite likely requires a git-head version of the compiler. Probably an oversight. A pull was made to fix the issue: https://github.com/CyberShadow/DustMite/pull/19 In the future you should really file bugs to the dustmite bug tracker, not D.learn.
build dustmite
Firstly build way describe at https://github.com/CyberShadow/DustMite/wiki/Building-DustMite seem to be wrong as dsplit.d was rename as splitter.d Secondly build fail take a look behind $ ldc2 -release -w -g -O3 dustmite.d splitter.d -of dustmite splitter.d(262): Error: delegate splitter.DSplitter.__lambda22 function literals cannot be class members splitter.d(262): Error: delegate splitter.DSplitter.__lambda22 circular dependency. Functions cannot be interpreted while being compiled splitter.d(284):called from here: (*_error_() { Token[string] lookup; auto t = Token.generated0; Token add(string s) { auto p = s in lookup; if (p) return *p; return lookup[s] = t++; } foreach (pair; pairs) { add(pair.start); add(pair.end); } foreach (i, synonyms; separators) { foreach (sep; synonyms) { add(sep); } } return lookup; } )()