Thanks for your tips. I have tried:
- go to C:\dev\ros2\examples\c++\HelloWorldExample
- mkdir build
- cd build
- cmake …\ -G “Visual Studio 14 2015 Win64”
- open HelloWorldExample(VC++ Project) with open Visual Studio 15
- I add fies: C:\dev\ros2\Lib\libfastrtps-1.5.lib;
C:\dev\ros2\Lib\libfastcdr-1.0.lib; in the properties --> Linker --> Input --> Additional Dependencies - Build
Error Info:
2>------ Rebuild All started: Project: HelloWorldExample, Configuration: Debug x64 ------
2> Building Custom Rule C:/dev/ros2/examples/C++/HelloWorldExample/src/HelloWorldExample/CMakeLists.txt
2> CMake does not need to re-run because C:/dev/ros2/examples/C++/HelloWorldExample/src/HelloWorldExample/build_2/CMakeFiles/generate.stamp is up-to-date.
2> HelloWorld.cxx
2> HelloWorldPubSubTypes.cxx
2> HelloWorldPublisher.cpp
2> HelloWorldSubscriber.cpp
2> HelloWorld_main.cpp
2> Generating Code…
2>LINK : fatal error LNK1104: cannot open file ‘libfastcdrd-1.0.lib’
========== Rebuild All: 1 succeeded, 1 failed, 0 skipped ==========