Skip to content
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

Rcpp issue? #11

Open
kkradtke opened this issue Nov 8, 2019 · 0 comments
Open

Rcpp issue? #11

kkradtke opened this issue Nov 8, 2019 · 0 comments

Comments

@kkradtke
Copy link

kkradtke commented Nov 8, 2019

Hi Ron, I just installed the InsightRx/PKPDsim on a new macbook and I'm having issues with Rcpp when i try the new_ode_model() function. I am getting several errors like:

filecab22cab112.cpp:226:14: error: use of overloaded operator '=' is ambiguous (with operand types 'std::vector<double>' and 'Rcpp::Vector<19, PreserveStorage>::NameProxy' (aka 'generic_name_proxy<19, PreserveStorage>'))
  cov_FEMALE = design["cov_FEMALE"];
  ~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/vector:574:13: note: candidate function
    vector& operator=(vector&& __x)

I have run the code on an older macbook/older PKPsim version and everything works fine. When I installed PKPDsim, I updated all packages (Rccp version 1.0.3) but I have also tried older Rcpp versions with no luck.

I've found this previous post which seems to be describing the same issue. Do you think there a similar problem with the compiler version? Please advise on how to fix. Thanks! #1

karawoo pushed a commit that referenced this issue Sep 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant