开发者

compiling error about the example of The Keyword parser options.cpp

I was compiling the newest keyword example options.cpp with the newest Spirit got by svn. But I got the following error:

options.cpp(26) : error C2065: “int32_t”: undefined identifier 开发者_开发问答options.cpp(31) : error C3203: “pair”: can't be template variant ...

I don't know why.

Thanks


This was a problem in the example (which I have fixed in SVN). The fixed version will be available with Boost V1.47.

In case you're interested: the reason was that int32_t is not a predefined type when using MSVC. I assume the author developed the example using g++, where this type is defined.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜