我需要为正在处理的项目编译并安装工具箱。但是,根据文档,该工具包需要使用Mingw32进行编译,并且我具有64位系统。 Mingw在配置源代码时没有任何错误或警告,而mingw32-make退出时出现代码2错误。
执行mingw-32-make会引发以下错误:
In file included from src/SMILExtract.cpp:39:
src/smileCommon.hpp:162:16: error: ambiguating new declaration of 'long int getline(char**, size_t*, FILE*)'
DLLEXPORT long getline (char **lineptr, size_t *n, FILE *stream);
^~~~~~~
In file included from src/smileCommon.hpp:55,
from src/SMILExtract.cpp:39:
c:\mingw\include\stdio.h:655:33: note: old declaration 'ssize_t getline(char**, size_t*, FILE*)'
__cdecl __MINGW_NOTHROW ssize_t getline
^~~~~~~
In file included from src/smileLogger.hpp:73,
from src/smileLogger.cpp:46:
src/smileCommon.hpp:162:16: error: In file included from ambiguating new declaration of 'src/configManager.hpp:43long int getline(char**, size_t*, FILE*),
from '
DLLEXPORT long src/configManager.cpp:55:
getline (char **lineptr, size_t *n, FILE *stream);
src/smileCommon.hpp:162:16: error: ambiguating new declaration of 'long int getline(char**, size_t*, FILE*) ^~~~~~~'
并继续以错误代码2退出,如下所示:
Makefile:1152: recipe for target 'src/libopensmile_la-SMILExtract.lo' failed
mingw32-make[1]: *** [src/libopensmile_la-SMILExtract.lo] Error 1
mingw32-make[1]: Leaving directory 'c:/Users/MaaikeK/openEAR'
Makefile:450: recipe for target 'all' failed
mingw32-make: *** [all] Error 2
据我了解,这可能涉及将32位长变量转换为64位长变量。但是,我不熟悉C或C ++,也不确定如何解决它以便成功执行mingw32-make。
感谢您的帮助!