在以python-2.7.6作为引用编译VC++ 2008项目时,出现以下错误



55/56行包括:

PyAPI_FUNC(struct symtable *) PySymtable_Build(mod_ty, const char *,
                                          PyFutureFeatures *);

我包括以下人员:
#include "Python27/node.h"
#include "Python27/grammar.h"
#include "Python27/token.h"
#include "Python27/parsetok.h"
#include "Python27/errcode.h"
#include "Python27/compile.h"
#include "Python27/symtable.h"
#include "Python27/eval.h"
#include "Python27/marshal.h"

我的构建环境是:Win7 x32,VC++ 08编译器

但是,如何解决此问题?

最佳答案

mod_ty存在于Python-ast.h(在python 2.7中)中,您没有包含它。

关于python - 'mod_ty': Undeclared Identifier,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/21211592/

10-11 22:22
查看更多