0

I wrote a Rcpp code which works fine in linux, But When I want to run it on University labs which have Windows machines. I get this error:

error: unrecognized command line option '-std=c++11'

As in this answer I used -std=c++0x, But it not working on my code.

Question is: How Can I update g++ in windows. Any other suggestion?

SirSaleh
  • 1,452
  • 3
  • 23
  • 39

1 Answers1

1

R supports the one version of g++ that ships in the Rtools bundle associated with each R release, currently g++ 4.9.3.

Changing that is "possibly in theory but really hard in practive".

Try to adapt your code to g++ 4.9.3. I have in one case backported something missing from the C++ standard library shipping with g++.

Dirk Eddelbuettel
  • 360,940
  • 56
  • 644
  • 725