cmmid / covid-uk

Scenario analyses for COVID-19 outbreak in the United Kingdom
GNU General Public License v3.0
64 stars 28 forks source link

Error 1 occurred building shared library #8

Open alex6092400 opened 4 years ago

alex6092400 commented 4 years ago

Hello ! I'm interested in this project and I tried to run the UK.R script but i have some errors especially when i run this part:

packageStartupMessage("Attaching C++ code...")

sourceCpp(paste0(cm_path_, "/model_v1/corona.cpp"), rebuild = cm_force_rebuild_, cacheDir = cm_build_dir_, verbose = cm_build_verbose_)

sourceCpp(paste0(cm_path_, "/fit_v1/fit.cpp"), rebuild = cm_force_rebuild_, cacheDir = cm_build_dir_, verbose = cm_build_verbose_)

In fact this error appear

Error in sourceCpp(paste0(cm_path_, "/model_v1/corona.cpp"), rebuild = cm_force_rebuild_, : Error 1 occurred building shared library. Calls: source -> withVisible -> eval -> eval -> sourceCpp

Does anyone have already seen this problem before and know how it can be solved ?

Thanks a lot for your help !