Skip to content

BioCro compilation error #4

Description

@eloch216

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions