當試圖安裝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