当试图安装cxvopt包的Python,使用Windows点子,我收到以下错误信息:CVXOPT安装失败,在复杂的类型声明文件misc.h
misc.h(35): error C2146: syntax error: missing ';' before identifier 'z'
misc.h(35): error C2061: syntax error: identifier 'z'
misc.h(36): error C2059: syntax error: '}'
...等等。
错误发生在如下图所示,在复杂的变量声明文件misc.h(在base.c参考):
#ifndef NO_ANSI99_COMPLEX
typedef union {
double d;
int_t i;
double complex z;
} number;
#endif
这并不是我使用另一台计算机上发生。根据需要安装了Visual Studio 14.0。
任何看过这个问题的人都可以提出解决方案吗? (我的第一个想法是包含“complex.h”,但是在cvxopt.h中引用了它,它包含在misc.h之前的base.c中)。
什么是'int_t'? – Olaf