1

I am trying c++ in eclipse for the first time. I loaded some c++ code from an open source project which uses armadillo and rcpp. I managed to get the code to get past including and using c/c++ Build -> settings popup. Now it gets stuck on using namespace arma; using namespace Rcpp;

Both get errors like symbol 'arma' could not be resolved. How to get past this point?

bhomass
  • 3,414
  • 8
  • 45
  • 75
  • Do you have the source code for armadillo and rcpp or are those already compiled libraries? – javey Aug 13 '16 at 03:42
  • If they are compiled libraries they you need to add the libraries to your project. Go to Project-->Properties-->C/C++ General-->Paths and Symbols Libraries tab and add the path to the library files. – javey Aug 13 '16 at 03:45
  • I added both to the libraries and library paths tabs. – bhomass Aug 13 '16 at 04:00
  • Sorry. all I had to do is to do project -> build. Like I said, the first time. – bhomass Aug 13 '16 at 05:47
  • 1
    https://stackoverflow.com/questions/27003438/eclipse-cdt-project-with-armadillo-cdt-does-not-recognize-arma-namespace?rq=1 is this the one you are searching for – 9113303 Jul 04 '18 at 09:06

0 Answers0