在Windows上构建xmlp库

时间:2011-02-05 12:46:48

标签: xml d

我目前正在尝试在Windows上为d2构建xmlp库,但我不断收到以下错误(我正在使用git bash构建它):

$ ./build2.sh
D:/__dev/D/dmd2/windows/bin/dmd -g -ofTestXmlConf inrange/recode.d inrange/instring.d inrange/instream.d xmlp/input.d xmlp/format.
d xmlp/compatible.d xmlp/xmlrules.d xmlp/except.d xmlp/xmldom.d xmlp/pieceparser.d xmlp/delegater.d D:/__dev/D/dmd2/src/phobos/std
/ctype.d D:/__dev/D/dmd2/src/phobos/std/utf.d D:/__dev/D/dmd2/src/phobos/std/file.d XmlConf.d
xmlp\pieceparser.d(123): function declaration without return type. (Note that constructors are always named 'this')
xmlp\pieceparser.d(123): no identifier for declarator HashSet(DOMString)
xmlp\pieceparser.d(123): semicolon expected following function declaration
xmlp\pieceparser.d(123): no identifier for declarator pending

我的build2.sh如下所示:

path=D:/__dev/D/dmd2
plib=${path}/src/phobos/
xp=xmlp/
dcomp2=${path}/windows/bin/dmd
inr=inrange/

src="${inr}recode.d ${inr}instring.d ${inr}instream.d ${xp}input.d ${xp}format.d ${xp}compatible.d ${xp}xmlrules.d ${xp}except.d ${xp}xmldom.d ${xp}pieceparser.d ${xp}delegater.d"  

psrc="${plib}std/ctype.d ${plib}std/utf.d ${plib}std/file.d"  

makeit "${dcomp2} -g -ofTestXmlConf ${src} ${psrc} XmlConf.d"
makeit "${dcomp2} -g -ofTestBooks ${src} ${psrc} ElementHandler.d "
makeit "${dcomp2} -release -ofRelXmlConf ${src} ${psrc} XmlConf.d"
makeit "${dcomp2} -release -ofRelBooks ${src} ${psrc} ElementHandler.d "

我在这里错过了什么吗?

1 个答案:

答案 0 :(得分:1)

我不知道问题是什么,但看起来它找不到所需的类型或其他东西。一种解决方案可能是检查修订版12,这是在更改该行之前。

更新

开发转移到std文件夹。

http://www.dsource.org/projects/xmlp/browser/trunk/std

当前版本需要以哈希

完成的工作

http://www.dsource.org/projects/xmlp/browser/trunk/hash

虽然您可以更改这两个位置,但它用于使用内置哈希表。