I said:
This is solved. The problem was NOT related to the .pro file, it was related to the syntax of
parseEval
function. The RInside I have on Linux is older than RInside I have on Windows. The versions of Rcpp installed are also different on my Linux system and Windows system.This syntax of
parseEval
-int returnValue = R.parseEval ("sum");
works fine on Linux with older RInside but fails on Windows with newer RInside.So, I modified the above code as follows and it compiled successfully with the above .pro file.
SEXP ans;
int returnValue = R.parseEval ("sum", ans);
This did compile successfully, but to my horror this joy was just the calmness before the storm!
The same error had now shifted to the run time!
So, the permanent solution to this error is editing the .pro file and linking Rcpp AFTER RInside:
LIBS += -Lc:/R-2.15.1/library/RInside/libs/i386 -lRInside
LIBS += -Lc:/R-2.15.1/library/Rcpp/libs/i386 -lRcpp