2014-01-19 19 views
0

雖然編譯一個VC++ 2008項目與Python-2.7.6作爲引用i得到以下錯誤'mod_ty':未聲明的標識符

Python27/symtable.h(55):錯誤C2065:mod_ty 「:未聲明的標識符

55/56系列包括:

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

我includeing的follwing:

#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" 

我的構建ENV是:Win7的32倍,VC++編譯器08

但是,如何解決這個問題?

回答

0

mod_ty存在於Python-ast.h(在python 2.7中),您沒有包括它。