@bgoodri It looks like Microsoft’s R Open 4.0.2 is causing issues with the TBB. The two users above both have rstan 2.21.2 and StanHeaders 2.21.0-6, and are getting the undefined reference
error that popped up with 2.21.1:
C:/rtools40/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: file3bc828c2234.o:file3bc828c2234.cpp:(.text+0x1317): undefined reference to `rstan::stan_fit::stan_fit(SEXPREC*, int)'
C:/rtools40/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: file3bc828c2234.o:file3bc828c2234.cpp:(.text+0x75e): undefined reference to `tbb::internal::task_scheduler_observer_v3::observe(bool)'
C:/rtools40/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: file3bc828c2234.o:file3bc828c2234.cpp:(.text$_ZN3tbb8internal26task_scheduler_observer_v3D1Ev[_ZN3tbb8internal26task_scheduler_observe