When I am doing the Case study for Monotonic effects then I am getting `Error in sink(type = "output") : invalid connection`

I am using the following code:

Error in compileCode(f, code, language = language, verbose = verbose) : 
  C:\rtools42\x86_64-w64-mingw32.static.posix\bin/ld.exe: file3460401d7682.o:file3460401d7682.cpp:(.text$_ZN3tbb8internal26task_scheduler_observer_v3D0Ev[_ZN3tbb8internal26task_scheduler_observer_v3D0Ev]+0x1d): undefined reference to `tbb::internal::task_scheduler_observer_v3::observe(bool)'C:\rtools42\x86_64-w64-mingw32.static.posix\bin/ld.exe: file3460401d7682.o:file3460401d7682.cpp:(.text$_ZN3tbb10interface623task_scheduler_observerD1Ev[_ZN3tbb10interface623task_scheduler_observerD1Ev]+0x1d): undefined reference to `tbb::internal::task_scheduler_observer_v3::observe(bool)'C:\rtools42\x86_64-w64-mingw32.static.posix\bin/ld.exe: file3460401d7682.o:file3460401d7682.cpp:(.text$_ZN3tbb10interface623task_scheduler_observerD1Ev[_ZN3tbb10interface623task_scheduler_observerD1Ev]+0x3a): undefined reference to `tbb::internal::task_scheduler_observer_v3::observe(bool)'C:\rtools42\x86_64-w64-mingw32.static.posix\bin/ld.exe: file3460401d7682.o:file3460401d7682.cpp:(.text$_ZN3tbb10interface
Error in sink(type = "output") : invalid connection

Monotonic_effects_case_study

See the RStan Getting Started Guide for Windows: Configuring C Toolchain for Windows · stan-dev/rstan Wiki · GitHub

2 Likes