Do you mind posting your solution here? This might be helpful for people stumbling upon the same error from search machines. --- [Visit Topic](https://discourse.ros.org/t/ros2-subscriber-defined-in-class-win10-visual-studio-14/4863/3) or reply to this email to respond.