-
Notifications
You must be signed in to change notification settings - Fork 132
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error when compiling with RCpp: no match for call to function #61
Comments
Can you provide some details about the system you're compiling this on? |
Thank you for your answer. |
Can you provide a minimal reproducible example that generates this error? |
I've experienced this problem as well. It appears to be related to the fact that RcppArmadillo forces the use of 32 bit integers (this is required by R itself, see https://stackoverflow.com/questions/57802546/unable-to-load-armadillo-cubeuword-when-using-rcpparmadillo). I managed to solve it by replacing line 150 in include/misc/optim_options.hpp from
to
|
I get these errors when compiling my the cpp file with Rcpp
From the file nm.hpp
unconstrained/nm.hpp:230:58: error: no match for call to ‘(optim::ColVec_t {aka arma::Col<double>}) (optim::ColVecUInt_t&)’
From the file core/access.hpp
core/access.hpp:27:43: error: no matching function for call to ‘arma::Mat<double>::rows(optim::ColVecUInt_t&)’
I also got a lot of notes and warnings: for example int used at the place of long.
Did I miss something? I followed method 2 for the installation.
The text was updated successfully, but these errors were encountered: