How to properly run stamath library with gcc on window?

Operating System:Window10
Interface Version:math-develop
Compiler/Toolkit:GCC
I want to implement the simple procedure said on this website(http://mc-stan.org/math/index.html) on Windows, and I used GCC to add the file path as it was requested,but i failed。And I want to ask if my path is added correctly?
The path stated on the website is -I: ~/stan-dev/math/stan and ~/stan-dev/math/lib/eigen_3.3.3/Eigen and ~/stan-dev/math/lib/boost_1.69.0/boost and ~/stan-dev/math/lib/sundials_4.1.0/include and ~/stan-dev/math/lib/tbb_2019_U8/include.
And i use gcc -std=c++11 -I “D:/math-develop” -I “D:/math-develop/lib/eigen_3.3.3” -I “D:/math-develop/lib/boost_1.69.0” -I “D:/math-develop/lib/sundials_4.1.0/include” -I “D:/math-develop/lib/tbb_2019_U8/include” -D_REENTRANT foo.cpp.
Some errors occurred,for example,
D:/math-develop/stan/math/prim/mat/eigen_plugins.h:22:30: error: ‘conditional_t’ in namespace ‘std’ does not name a template type
using double_return_t = std::conditional_t<std::is_const<std::remove_reference_t>::value,
^
D:/math-develop/stan/math/prim/mat/eigen_plugins.h:26:31: error: ‘conditional_t’ in namespace ‘std’ does not name a template type
using reverse_return_t = std::conditional_t<std::is_const<std::remove_reference_t>::value,
^
D:/math-develop/stan/math/prim/mat/eigen_plugins.h:31:28: error: ‘conditional_t’ in namespace ‘std’ does not name a template type
using vari_return_t = std::conditional_t<std::is_const<std::remove_reference_t>::value,
^
D:/math-develop/stan/math/prim/mat/eigen_plugins.h:36:31: error: ‘conditional_t’ in namespace ‘std’ does not name a template type
using forward_return_t = std::conditional_t<std::is_const<std::remove_reference_t>::value,
^
D:/math-develop/stan/math/prim/mat/eigen_plugins.h:60:10: error: ‘enable_if_t’ in namespace ‘std’ does not name a template type
std::enable_if_t<std::is_pointer::value, reverse_return_t>
^
I’m very puzzled whether there is an error in my path reference or if it is caused by other reasons.

Swap -std=c++11 for -std=c++14

Thank you very much for your answer,but I have some problems related to tbb here.For example,

1(.text$_ZN3tbb10interface710task_arena20current_thread_indexEv[__ZN3tbb10interface710task_arena20current_thread_indexEv]+0x7): undefined reference to tbb::interface7::internal::task_arena_base::internal_current_slot();
2(.text$_ZN3tbb8internal26task_scheduler_observer_v3D2Ev[__ZN3tbb8internal26task_scheduler_observer_v3D2Ev]+0x49): undefined reference to tbb::internal::task_scheduler_observer_v3::observe(bool)' 3(.text$_ZN3tbb8internal26task_scheduler_observer_v3D1Ev[__ZN3tbb8internal26task_scheduler_observer_v3D1Ev]+0x49): undefined reference to tbb::internal::task_scheduler_observer_v3::observe(bool)’
4(.text$_ZN3tbb10interface623task_scheduler_observer7observeEb[__ZN3tbb10interface623task_scheduler_observer7observeEb]+0x43): undefined reference to `tbb::internal::task_scheduler_observer_v3::observe(bool)’

I guess it should be about the tbb path,But I can’t solve this problem well,Could you solve it?

That means it can’t find tbb::internal::task_scheduler_observer_v3::observe which means that linking to the tbb .so file is not being done correctly.

You can see how we do it at the link below with make