In file included from src/test/test-models/stanc.cpp:1: In file included from src/stan/command/stanc_helper.hpp:6: In file included from src/stan/lang/compile_functions.hpp:5: In file included from src/stan/lang/generator/generate_standalone_functions.hpp:7: In file included from src/stan/lang/generator/generate_function_instantiations.hpp:5: In file included from src/stan/lang/generator/generate_function_instantiation.hpp:7: src/stan/lang/generator/generate_function_instantiation_name.hpp:19:53: error: unknown type name 'function_decl_def'; did you mean '::stan::lang::function_decl_def'? void generate_function_instantiation_name(const function_decl_def& fun, ^~~~~~~~~~~~~~~~~ ::stan::lang::function_decl_def
I haven’t pushed yet. I thought the type of error might look familiar. I
wrapped up for today so I’ll push tomorrow.
check your includes?
What am I checking for? The file with that specific struct is included…
sorry, not enough info here to help - please show file: src/stan/lang/generator/generate_function_instantiation_name.hpp
what else have you changed?
That looks like you’re not inside the
Turns out the solution to this mystery was that a completely different file that never showed up as a problem (I had edited it) was one closing paren short in the middle of the file so it put this file inside of the
stan namespace… so the inside code was in the
Not surprising. The compiler was clearly indicating you weren’t in
stan::lang:: or hadn’t included the file with the declearations you needed.