我正在尝试使用python setup.py build
在python中安装PyDaw库,但是出现以下错误:
daw/FlpModule.cpp(19): error C3646: 'initflp': unknown override specifier
daw/FlpModule.cpp(19): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
daw/FlpModule.cpp(19): error C2059: syntax error: '('
daw/FlpModule.cpp(27): error C2078: too many initializers
daw/FlpModule.cpp(41): error C2440: 'initializing': cannot convert from 'const char [4]' to 'Py_ssize_t'
daw/FlpModule.cpp(41): note: There is no context in which this conversion is possible
daw/FlpModule.cpp(41): error C2440: 'initializing': cannot convert from 'destructor' to 'printfunc'
daw/FlpModule.cpp(41): note: This conversion requires a reinterpret_cast, a C-style cast or function-style cast
daw/FlpModule.cpp(41): error C2440: 'initializing': cannot convert from 'getattrfunc' to 'setattrfunc'
daw/FlpModule.cpp(41): note: This conversion requires a reinterpret_cast, a C-style cast or function-style cast
daw/FlpModule.cpp(41): error C2440: 'initializing': cannot convert from 'setattrfunc' to 'PyAsyncMethods *'
daw/FlpModule.cpp(41): note: There is no context in which this conversion is possible
daw/FlpModule.cpp(205): error C3861: 'Py_FindMethod': identifier not found
daw/FlpModule.cpp(264): error C3646: 'initflp': unknown override specifier
daw/FlpModule.cpp(264): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
daw/FlpModule.cpp(264): error C2084: function 'int DL_EXPORT(void)' already has a body
daw/FlpModule.cpp(19): note: see previous definition of 'DL_EXPORT'
daw/FlpModule.cpp(264): error C2059: syntax error: '('
daw/FlpModule.cpp(265): error C2143: syntax error: missing ';' before '{'
daw/FlpModule.cpp(265): error C2447: '{': missing function header (old-style formal list?)
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\BuildTools\\VC\\Tools\\MSVC\\14.16.27023\\bin\\HostX86\\x86\\cl.exe' failed with exit status 2
我该如何工作?我已经尝试了32位和64位版本的python,但仍然存在相同的错误。