ROS2 application development in visual studio 2017 or 2015 (win 10 x64)

Hi marguedas:

I tried to build this example https://github.com/ros2/examples/:

  1. download https://github.com/ros2/examples/ into dictionary C:\dev\ros2
  2. open developer cmd prompt for VS2015
  3. go to C:\dev\ros2\examples-master\rclcpp\minimal_publisher\
  4. mkdir build
  5. cd build
  6. cmake …\ -G “Visual Studio 14 2015 Win64”
  7. open publisher_lambda(VC++ Project)
  8. build
  9. error info:
    1>------ Build started: Project: ZERO_CHECK, Configuration: Release x64 ------
    1> Checking Build System
    1> CMake does not need to re-run because C:/dev/ros2/examples-master/rclcpp/minimal_publisher/build/CMakeFiles/generate.stamp is up-to-date.
    2>------ Build started: Project: publisher_lambda, Configuration: Release x64 ------
    2> Building Custom Rule C:/dev/ros2/examples-master/rclcpp/minimal_publisher/CMakeLists.txt
    2> CMake does not need to re-run because C:/dev/ros2/examples-master/rclcpp/minimal_publisher/build/CMakeFiles/generate.stamp is up-to-date.
    2> lambda.cpp
    2>C:\dev\ros2\examples-master\rclcpp\minimal_publisher\lambda.cpp(35): warning C4002: too many actual parameters for macro 'RCLCPP_INFO’
    2>C:\dev\ros2\examples-master\rclcpp\minimal_publisher\lambda.cpp(35): error C2039: ‘get_logger’: is not a member of 'MinimalPublisher’
    2> C:\dev\ros2\examples-master\rclcpp\minimal_publisher\lambda.cpp(24): note: see declaration of 'MinimalPublisher’
    2>C:\dev\ros2\examples-master\rclcpp\minimal_publisher\lambda.cpp(35): error C2039: ‘__this’: is not a member of 'MinimalPublisher’
    2> C:\dev\ros2\examples-master\rclcpp\minimal_publisher\lambda.cpp(24): note: see declaration of ‘MinimalPublisher’
    ========== Build: 1 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========