在Windows下构建QtDensity

时间:2017-02-27 12:39:44

标签: c++ r qt rinside

在Windows 7下编译R示例QtDensity时遇到一些问题。

我使用Qt 5.6,因为它是用MinGW 4.9编译的,与RTools 34相同的工具链。

以下是构建错误:

C:\Qt\Qt5.6.2\Tools\mingw492_32\i686-w64-mingw32\include\objidlbase.h:864: erreur : macro "Realloc" requires 3 arguments, but only 2 given
         SIZE_T cb) = 0;
                  ^
C:\Qt\Qt5.6.2\Tools\mingw492_32\i686-w64-mingw32\include\objidlbase.h:864: erreur : 'Realloc' declared as a 'virtual' field
         SIZE_T cb) = 0;
                      ^

C:\Progz\R-3.3.2\include\R_ext\RS.h:73: erreur : expected identifier before '(' token
 #define Free(p)        (R_chk_free( (void *)(p) ), (p) = NULL)
                                     ^

C:\Progz\R-3.3.2\include\R_ext\RS.h:73: erreur : 'parameter' declared as function returning a function
 #define Free(p)        (R_chk_free( (void *)(p) ), (p) = NULL)
                                               ^

C:\Progz\R-3.3.2\include\R_ext\RS.h:73: erreur : expected ')' before ',' token
 #define Free(p)        (R_chk_free( (void *)(p) ), (p) = NULL)
                                                  ^

C:\Progz\R-3.3.2\include\R_ext\RS.h:73: erreur : expected identifier before '(' token
 #define Free(p)        (R_chk_free( (void *)(p) ), (p) = NULL)
                                     ^

C:\Progz\R-3.3.2\include\R_ext\RS.h:73: erreur : 'parameter' declared as function returning a function
 #define Free(p)        (R_chk_free( (void *)(p) ), (p) = NULL)
                                               ^

C:\Progz\R-3.3.2\include\R_ext\RS.h:73: erreur : expected ')' before ',' token
 #define Free(p)        (R_chk_free( (void *)(p) ), (p) = NULL)
                                                  ^

它工作正常,在(Arch)Linux下根本没有任何调整。

我看了here,但第一个答案中引起的线条形状很好。

0 个答案:

没有答案