交叉编译时mingw-64冲突的声明

时间:2015-06-08 22:59:27

标签: c++ linux eclipse windows cross-compiling

我正在尝试使用Ubuntu Trusty中的Eclipse中的mingw-64对Windows进行交叉编译(我没有使用自动makefile功能)。除了来自mingw-64标头的一些冲突声明之外,一切都很顺利,例如:

In file included from /usr/share/mingw-w64/include/winbase.h:31:0,
             from /usr/share/mingw-w64/include/windows.h:70,
             from ../[...].cpp:532:
/usr/share/mingw-w64/include/profileapi.h: At global scope:
/usr/share/mingw-w64/include/profileapi.h:16:87: error: declaration of C function ‘WINBOOL QueryPerformanceCounter(LARGE_INTEGER*)’ conflicts with
WINBASEAPI WINBOOL WINAPI QueryPerformanceCounter (LARGE_INTEGER *lpPerformanceCount);

就像我说的那样,我是一个新的交叉编译,这是否表明了一个常见的交叉编译错误?如果没有,我是否需要从源代码构建mingw以删除少量(< 10)冲突声明?

0 个答案:

没有答案