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

BioCro compilation error #4

Open
eloch216 opened this issue Nov 25, 2024 · 0 comments
Open

BioCro compilation error #4

eloch216 opened this issue Nov 25, 2024 · 0 comments

Comments

@eloch216
Copy link

I just encountered a compiler error while installing BioCro from a local copy of this repository:

using C++ compiler: 'G__~1.EXE (GCC) 12.3.0'
using C++11
g++  -std=gnu++11 -MT R_dynamical_system.o -MMD -MP -MF .deps/R_dynamical_system.d -I"C:/PROGRA~1/R/R-43~1.2/include" -DNDEBUG -I../boost_1_71_0 -DR_NO_REMAP    -I"C:/rtools43/x86_64-w64-mingw32.static.posix/include"     -O2 -Wall  -mfpmath=sse -msse2 -mstackrealign  -c -o R_dynamical_system.o R_dynamical_system.cpp
In file included from R_helper_functions.h:7,
                 from R_dynamical_system.cpp:4:
state_map.h:32:55: error: expected class-name before '{' token
   32 | struct bad_state_vector_map_index : std::out_of_range {
      |                                                       ^
state_map.h: In constructor 'bad_state_vector_map_index::bad_state_vector_map_index(std::string)':
state_map.h:33:50: error: class 'bad_state_vector_map_index' does not have any field named 'out_of_range'
   33 |     bad_state_vector_map_index(std::string msg) :out_of_range{msg} { }
      |                                                  ^~~~~~~~~~~~
make: *** [Makevars.win:55: R_dynamical_system.o] Error 1
ERROR: compilation failed for package 'BioCro'

It may be possible to fix this by changing the biocro submodule to point to a different commit of the main BioCro repository.

But, in the meantime, it is also possible to temporarily address this issue by including <stdexcept> at the top of biocro/src/state_map.h in your local copy. Just mentioning this here in case anyone else encounters this issue.

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