gcc -std=gnu99 -I/usr/share/R/include -DNDEBUG -fpic -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g -c odin6bf5f67b52f.c -o odin6bf5f67b52f.o
odin6bf5f67b52f.c: In function ‘odin6bf5f67b52f_deriv’:
odin6bf5f67b52f.c:104:41: error: ‘R’ undeclared (first use in this function)
output[0] = S + E1 + E2 + I1 + I2 + R;
^
odin6bf5f67b52f.c:104:41: note: each undeclared identifier is reported only once for each function it appears in
/usr/lib/R/etc/Makeconf:132: recipe for target 'odin6bf5f67b52f.o' failed
make: *** [odin6bf5f67b52f.o] Error 1
Error in compile(path, verbose, load) : Error compiling source
I'm trying to run a model where Recovered never lose immunity, but this results in an compile error if I try to use the same variable in the output:
Results in the following error:
If I add R to one of the derivs, i.e.:
it does work.