Hi marguedas:
I tried to build this example https://github.com/ros2/examples/:
- download https://github.com/ros2/examples/ into dictionary C:\dev\ros2
- open developer cmd prompt for VS2015
- go to C:\dev\ros2\examples-master\rclcpp\minimal_publisher\
- mkdir build
- cd build
- cmake …\ -G “Visual Studio 14 2015 Win64”
- open publisher_lambda(VC++ Project)
- build
- 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 ==========