我需要编译cpp代码,但收到以下消息:
Building with 'Xcode Clang++'. Error using mex ~/code_sparse_group_lasso/linNest.cpp:395:2: error: no matching function for call to 'linNest' linNest(X, y, index, nrow, ncol, numGroup, rangeGroupInd, groupLen, lambda1, lambda2, beta, innerIter, outerIter, thresh, outerThresh, eta, gamma, betaIsZero, step, reset); ^~~~~~~ ~/code_sparse_group_lasso/linNest.cpp:276:6: note: candidate function not viable: no known conversion from 'int' to 'int *' for 3rd argument; take the address of the argument with & void linNest(double *X, double* y, int *index, int *nrow, int *ncol, int *numGroup, int *rangeGroupInd, int *groupLen, double *lambda1, double *lambda2, double *beta, int *innerIter, int *outerIter, double *thresh, double *outerThresh, double *eta, double *gamma, int *betaIsZero, double *step, int *reset) ^ 1 error generated. 我认为错误来自未正确指定变量。有人可以帮忙吗?
更多&回答...