开发者

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

开发者 https://www.devze.com 2023-03-03 20:44 出处:网络
I was compiling the newest keyword example options.cpp with the newest Spirit got by svn. But I got the following error:

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

精彩评论

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