This is what is output while building
1> <path-to-depthai-core-repository>\depthai-core\include\depthai\pipeline\DeviceNode.hpp(67,16): error C4996: 'dai::node::MonoCamera': Use Camera node instead
1>(compiling source file 'src/detection_network.cpp')
1> <path-to-depthai-core-repository>\depthai-core\include\depthai\pipeline\DeviceNode.hpp(67,16):
1> the template instantiation context (the oldest one first) is
1> <path-to-depthai-core-repository>\depthai-core\include\depthai\pipeline\node\MonoCamera.hpp(17,69):
1> see reference to class template instantiation 'dai::DeviceNodeCRTP<dai::DeviceNode,dai::node::MonoCamera,dai::MonoCameraProperties>' being compiled
1> <path-to-depthai-core-repository>\depthai-core\include\depthai\pipeline\DeviceNode.hpp(66,17):
1> while compiling class template member function 'const char *dai::DeviceNodeCRTP<dai::DeviceNode,dai::node::MonoCamera,dai::MonoCameraProperties>::getName(void) const'
1><path-to-depthai-core-repository>\depthai-core\include\depthai\pipeline\DeviceNode.hpp(67,25): error C4996: 'dai::node::MonoCamera::NAME': Use Camera node instead
I have been able to get around it by commenting out #include "node/ColorCamera.hpp"
and #include "node/MonoCamera.hpp"
from pipeline/nodes.hpp.