My code works well in windows8, but when I run the code in win7, some error occurs,
Warning message:
running command 'make -f "C:/USER_P~1/R/R-32~1.1/etc/x64/Makeconf" -f "C:/USER_P~1/R/R-32~1.1/share/make/
winshlib.mk" -f "C:\Users\Felix\Documents/.R/Makevars" SHLIB_LDFLAGS='$(SHLIB_CXXLDFLAGS)' SHLIB_LD='$(SHLIB_CXXLD)' SHLIB="file1170f723401.dll" WIN=64 TCLBIN=64 OBJECTS="file1170f723401.o"' had status 127
ERROR(s) during compilation: source code errors or compiler configuration errors!
Program source:
1:
2: // includes from the plugin
3:
4:
5: // user includes
6: #define STAN__SERVICES__COMMAND_HPP// Code generated by Stan version 2.7
7:
8: #include <stan/model/model_header.hpp>
9:
10: namespace model1170185b14ca_M1_code_namespace {
11:
12: using std::istream;
13: using std::string;
14: using std::stringstream;
15: using std::vector;
16: using stan::io::dump;
17: using stan::math::lgamma;
18: using stan::model::prob_grad;
19: using namespace stan::math;
20:
21: typedef Eigen::Matrix<double,Eigen::Dynamic,1> vector_d;
22: typedef Eigen::Matrix<double,1,Eigen::Dynamic> row_vector_d;
23: typedef Eigen::Matrix<double,Eigen::Dynamic,Eigen::Dynamic> matrix_d;
24:
25: static int current_statement_begin__;
26: class model1170185b14ca_M1_code : public prob_grad {
27: private:
28: int N;
29: int J;
30: vector_d y;
31: vector_d x;
32: vector<int> gene;
33: public:
......
Error in compileCode(f, code, language = language, verbose = verbose) :
Compilation ERROR, function(s)/method(s) not created! Warning message:
running command 'make -f "C:/USER_P~1/R/R-32~1.1/etc/x64/Makeconf" -f "C:/USER_P~1/R/R-32~1.1/share/make/
winshlib.mk" -f "C:\Users\Felix\Documents/.R/Makevars" SHLIB_LDFLAGS='$(SHLIB_CXXLDFLAGS)' SHLIB_LD='$(SHLIB_CXXLD)' SHLIB="file1170f723401.dll" WIN=64 TCLBIN=64 OBJECTS="file1170f723401.o"' had status 127
In addition: Warning messages:
1: running command '"C:/User_Program_Files/R/R-3.2.1/bin/x64/R" CMD config CXX' had status 1
2: running command 'C:/User_Program_Files/R/R-3.2.1/bin/x64/R CMD SHLIB file1170f723401.cpp 2> file1170f723401.cpp.err.txt' had status 1