1

我尝试了两个示例,它们给了我同样的问题。

int main(int argc, char *argv[])
{
    qDebug() << "//------- before R instance";
    RInside R(argc, argv);          // create an embedded R instance
    qDebug() << "//------- after R instance";

应用输出:

Starting C:\Users\Alfonso\Desktop\Alf-15\RInside\inst\examples\build-qtdensity-Desktop_Qt_5_4_1_MinGW_32bit-Release\release\qtdensity.exe...
//------- before R instance
The program has unexpectedly finished.
C:\Users\Alfonso\Desktop\Alf-15\RInside\inst\examples\build-qtdensity-Desktop_Qt_5_4_1_MinGW_32bit-Release\release\qtdensity.exe crashed

有任何想法吗?(我在 Windows 7 上工作,我有 Qt 5.4.1 MinGW 32bit、R 3.1.3 和 RInside 0.2.13)谢谢。

4

1 回答 1

0

Make sure Qt and R are built with the same (or compatible) versions of MinGW. If you post on the rcpp-devel list some other Windows users may be able to help you.

The example Qt application included in RInside still works and does more than this.

于 2015-07-19T13:45:14.483 回答