[SOLVED] Build failed for ROS-Serial [AS 7.0.1931]

Go To Last Post
5 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hello community,

 

I have been using AS7 for programming my custom SAMD21 boards. I wanted to test ROS-Serial to use ROS (Robot Operating System) with my SAMD21 board. These are my steps below:

  1. I added the ros_lib library to the Arduino libraries folder.
  2. To just check, went to examples under the ros_lib and compiled in the Arduino IDE. Successfully compiled.
  3. Then, moving to what I actually want, I created a new project in AS7 using the sketch from Arduino option.
  4. Now I build it in AS7 BUT it failed. 
  5. It seems Atmel is not able to understand/link some libraries. Any help appreciated. I am stuck at this point.

 

Please find the build output below:

***************************************************************************************************

------ Build started: Project: ArduinoCore, Configuration: Debug ARM ------
Build started.
Project "ArduinoCore.cppproj" (default targets):
Target "PreBuildEvent" skipped, due to false condition; ('$(PreBuildEvent)'!='') was evaluated as (''!='').
Target "CoreBuild" in file "C:\Program Files (x86)\Atmel\Studio\7.0\Vs\Compiler.targets" from project "C:\Users\tsemwal\Documents\Atmel Studio\7.0\ros_hello\ros_hello\ArduinoCore\ArduinoCore.cppproj" (target "Build" depends on it):
    Task "RunCompilerTask"
        Shell Utils Path C:\Program Files (x86)\Atmel\Studio\7.0\shellUtils
        C:\Program Files (x86)\Atmel\Studio\7.0\shellUtils\make.exe all --jobs 8 --output-sync 
        Building file: ../src/core/abi.cpp
        Invoking: ARM/GNU C Compiler : 6.3.1
        "C:\Program Files (x86)\Atmel\Studio\7.0\toolchain\arm\arm-gnu-toolchain\bin\arm-none-eabi-g++.exe" -mthumb -D__SAMD21G18A__ -DDEBUG -DF_CPU=48000000L -DARDUINO=10809 -DARDUINO_SAMD_ZERO -DARDUINO_ARCH_SAMD -DUSB_VID=0x2341 -DUSB_PID=0x804d -DUSB_PRODUCT="\"Arduino Zero\"" -DUSB_MANUFACTURER="\"Arduino LLC\"" -DUSBCON -DSAMD_SERIES  -I"C:\Program Files (x86)\Atmel\Studio\7.0\Packs\arm\cmsis\5.0.1\CMSIS\Include" -I"..\include\libraries\ros_lib" -I"..\include\libraries\ros_lib\actionlib" -I"..\include\libraries\ros_lib\actionlib_msgs" -I"..\include\libraries\ros_lib\actionlib_tutorials" -I"..\include\libraries\ros_lib\bond" -I"..\include\libraries\ros_lib\control_msgs" -I"..\include\libraries\ros_lib\diagnostic_msgs" -I"..\include\libraries\ros_lib\dynamic_reconfigure" -I"..\include\libraries\ros_lib\examples\BlinkM" -I"..\include\libraries\ros_lib\gazebo_msgs" -I"..\include\libraries\ros_lib\geometry_msgs" -I"..\include\libraries\ros_lib\laser_assembler" -I"..\include\libraries\ros_lib\map_msgs" -I"..\include\libraries\ros_lib\nav_msgs" -I"..\include\libraries\ros_lib\nodelet" -I"..\include\libraries\ros_lib\pcl_msgs" -I"..\include\libraries\ros_lib\polled_camera" -I"..\include\libraries\ros_lib\ros" -I"..\include\libraries\ros_lib\roscpp" -I"..\include\libraries\ros_lib\roscpp_tutorials" -I"..\include\libraries\ros_lib\rosgraph_msgs" -I"..\include\libraries\ros_lib\rospy_tutorials" -I"..\include\libraries\ros_lib\rosserial_arduino" -I"..\include\libraries\ros_lib\rosserial_msgs" -I"..\include\libraries\ros_lib\sensor_msgs" -I"..\include\libraries\ros_lib\shape_msgs" -I"..\include\libraries\ros_lib\smach_msgs" -I"..\include\libraries\ros_lib\std_msgs" -I"..\include\libraries\ros_lib\std_srvs" -I"..\include\libraries\ros_lib\stereo_msgs" -I"..\include\libraries\ros_lib\tf" -I"..\include\libraries\ros_lib\tf2_msgs" -I"..\include\libraries\ros_lib\theora_image_transport" -I"..\include\libraries\ros_lib\topic_tools" -I"..\include\libraries\ros_lib\trajectory_msgs" -I"..\include\libraries\ros_lib\turtlesim" -I"..\include\libraries\ros_lib\turtle_actionlib" -I"..\include\libraries\ros_lib\visualization_msgs" -I"..\include\core" -I"..\include\core\avr" -I"..\include\core\USB" -I"..\include\variants" -I"..\include\core\samd21" -I"..\include\core\samd21\include" -I"..\include\core\samd21\include\component" -I"..\include\core\samd21\include\instance" -I"..\include\core\samd21\include\pio"  -Os -fno-threadsafe-statics -fno-exceptions -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions -g3 -w -mcpu=cortex-m0plus -c -std=gnu++11 --param max-inline-insns-single=500 -nostdlib -MD -MP -MF "src/core/abi.d" -MT"src/core/abi.d" -MT"src/core/abi.o"   -o "src/core/abi.o" "../src/core/abi.cpp" 
        Finished building: ../src/core/abi.cpp
        Building file: ../src/core/avr/dtostrf.c
        Invoking: ARM/GNU C Compiler : 6.3.1
        "C:\Program Files (x86)\Atmel\Studio\7.0\toolchain\arm\arm-gnu-toolchain\bin\arm-none-eabi-gcc.exe"  -x c -mthumb -D__SAMD21G18A__ -DDEBUG -DF_CPU=48000000L -DARDUINO=10809 -DARDUINO_SAMD_ZERO -DARDUINO_ARCH_SAMD -DUSB_VID=0x2341 -DUSB_PID=0x804d -DUSB_PRODUCT="\"Arduino Zero\"" -DUSB_MANUFACTURER="\"Arduino LLC\"" -DUSBCON -DSAMD_SERIES  -I"C:\Program Files (x86)\Atmel\Studio\7.0\Packs\arm\cmsis\5.0.1\CMSIS\Include" -I"..\include\libraries\ros_lib" -I"..\include\libraries\ros_lib\actionlib" -I"..\include\libraries\ros_lib\actionlib_msgs" -I"..\include\libraries\ros_lib\actionlib_tutorials" -I"..\include\libraries\ros_lib\bond" -I"..\include\libraries\ros_lib\control_msgs" -I"..\include\libraries\ros_lib\diagnostic_msgs" -I"..\include\libraries\ros_lib\dynamic_reconfigure" -I"..\include\libraries\ros_lib\examples\BlinkM" -I"..\include\libraries\ros_lib\gazebo_msgs" -I"..\include\libraries\ros_lib\geometry_msgs" -I"..\include\libraries\ros_lib\laser_assembler" -I"..\include\libraries\ros_lib\map_msgs" -I"..\include\libraries\ros_lib\nav_msgs" -I"..\include\libraries\ros_lib\nodelet" -I"..\include\libraries\ros_lib\pcl_msgs" -I"..\include\libraries\ros_lib\polled_camera" -I"..\include\libraries\ros_lib\ros" -I"..\include\libraries\ros_lib\roscpp" -I"..\include\libraries\ros_lib\roscpp_tutorials" -I"..\include\libraries\ros_lib\rosgraph_msgs" -I"..\include\libraries\ros_lib\rospy_tutorials" -I"..\include\libraries\ros_lib\rosserial_arduino" -I"..\include\libraries\ros_lib\rosserial_msgs" -I"..\include\libraries\ros_lib\sensor_msgs" -I"..\include\libraries\ros_lib\shape_msgs" -I"..\include\libraries\ros_lib\smach_msgs" -I"..\include\libraries\ros_lib\std_msgs" -I"..\include\libraries\ros_lib\std_srvs" -I"..\include\libraries\ros_lib\stereo_msgs" -I"..\include\libraries\ros_lib\tf" -I"..\include\libraries\ros_lib\tf2_msgs" -I"..\include\libraries\ros_lib\theora_image_transport" -I"..\include\libraries\ros_lib\topic_tools" -I"..\include\libraries\ros_lib\trajectory_msgs" -I"..\include\libraries\ros_lib\turtlesim" -I"..\include\libraries\ros_lib\turtle_actionlib" -I"..\include\libraries\ros_lib\visualization_msgs" -I"..\include\core" -I"..\include\core\avr" -I"..\include\core\USB" -I"..\include\variants" -I"..\include\core\samd21" -I"..\include\core\samd21\include" -I"..\include\core\samd21\include\component" -I"..\include\core\samd21\include\instance" -I"..\include\core\samd21\include\pio"  -Os -fno-threadsafe-statics -fno-exceptions -ffunction-sections -fdata-sections -g3 -w -mcpu=cortex-m0plus -c -std=gnu11 --param max-inline-insns-single=500 -nostdlib -MD -MP -MF "src/core/avr/dtostrf.d" -MT"src/core/avr/dtostrf.d" -MT"src/core/avr/dtostrf.o"   -o "src/core/avr/dtostrf.o" "../src/core/avr/dtostrf.c" 
        Finished building: ../src/core/avr/dtostrf.c
        Building file: ../src/core/hooks.c
        Invoking: ARM/GNU C Compiler : 6.3.1
        "C:\Program Files (x86)\Atmel\Studio\7.0\toolchain\arm\arm-gnu-toolchain\bin\arm-none-eabi-gcc.exe"  -x c -mthumb -D__SAMD21G18A__ -DDEBUG -DF_CPU=48000000L -DARDUINO=10809 -DARDUINO_SAMD_ZERO -DARDUINO_ARCH_SAMD -DUSB_VID=0x2341 -DUSB_PID=0x804d -DUSB_PRODUCT="\"Arduino Zero\"" -DUSB_MANUFACTURER="\"Arduino LLC\"" -DUSBCON -DSAMD_SERIES  -I"C:\Program Files (x86)\Atmel\Studio\7.0\Packs\arm\cmsis\5.0.1\CMSIS\Include" -I"..\include\libraries\ros_lib" -I"..\include\libraries\ros_lib\actionlib" -I"..\include\libraries\ros_lib\actionlib_msgs" -I"..\include\libraries\ros_lib\actionlib_tutorials" -I"..\include\libraries\ros_lib\bond" -I"..\include\libraries\ros_lib\control_msgs" -I"..\include\libraries\ros_lib\diagnostic_msgs" -I"..\include\libraries\ros_lib\dynamic_reconfigure" -I"..\include\libraries\ros_lib\examples\BlinkM" -I"..\include\libraries\ros_lib\gazebo_msgs" -I"..\include\libraries\ros_lib\geometry_msgs" -I"..\include\libraries\ros_lib\laser_assembler" -I"..\include\libraries\ros_lib\map_msgs" -I"..\include\libraries\ros_lib\nav_msgs" -I"..\include\libraries\ros_lib\nodelet" -I"..\include\libraries\ros_lib\pcl_msgs" -I"..\include\libraries\ros_lib\polled_camera" -I"..\include\libraries\ros_lib\ros" -I"..\include\libraries\ros_lib\roscpp" -I"..\include\libraries\ros_lib\roscpp_tutorials" -I"..\include\libraries\ros_lib\rosgraph_msgs" -I"..\include\libraries\ros_lib\rospy_tutorials" -I"..\include\libraries\ros_lib\rosserial_arduino" -I"..\include\libraries\ros_lib\rosserial_msgs" -I"..\include\libraries\ros_lib\sensor_msgs" -I"..\include\libraries\ros_lib\shape_msgs" -I"..\include\libraries\ros_lib\smach_msgs" -I"..\include\libraries\ros_lib\std_msgs" -I"..\include\libraries\ros_lib\std_srvs" -I"..\include\libraries\ros_lib\stereo_msgs" -I"..\include\libraries\ros_lib\tf" -I"..\include\libraries\ros_lib\tf2_msgs" -I"..\include\libraries\ros_lib\theora_image_transport" -I"..\include\libraries\ros_lib\topic_tools" -I"..\include\libraries\ros_lib\trajectory_msgs" -I"..\include\libraries\ros_lib\turtlesim" -I"..\include\libraries\ros_lib\turtle_actionlib" -I"..\include\libraries\ros_lib\visualization_msgs" -I"..\include\core" -I"..\include\core\avr" -I"..\include\core\USB" -I"..\include\variants" -I"..\include\core\samd21" -I"..\include\core\samd21\include" -I"..\include\core\samd21\include\component" -I"..\include\core\samd21\include\instance" -I"..\include\core\samd21\include\pio"  -Os -fno-threadsafe-statics -fno-exceptions -ffunction-sections -fdata-sections -g3 -w -mcpu=cortex-m0plus -c -std=gnu11 --param max-inline-insns-single=500 -nostdlib -MD -MP -MF "src/core/hooks.d" -MT"src/core/hooks.d" -MT"src/core/hooks.o"   -o "src/core/hooks.o" "../src/core/hooks.c" 
        Finished building: ../src/core/hooks.c
        Building file: ../src/core/itoa.c
        Invoking: ARM/GNU C Compiler : 6.3.1
        In file included from ..\include\libraries\ros_lib\std_msgs/string.h:7:0,
                         from ../src/core/itoa.c:21:
C:\Users\tsemwal\Documents\Atmel Studio\7.0\ros_hello\ros_hello\ArduinoCore\include\libraries\ros_lib\ros\msg.h(41,1): error: unknown type name 'namespace'
         namespace ros
         ^~~~~~~~~
C:\Users\tsemwal\Documents\Atmel Studio\7.0\ros_hello\ros_hello\ArduinoCore\include\libraries\ros_lib\ros\msg.h(42,1): error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
         {
         ^
        In file included from ../src/core/itoa.c:21:0:
C:\Users\tsemwal\Documents\Atmel Studio\7.0\ros_hello\ros_hello\ArduinoCore\include\libraries\ros_lib\std_msgs\string.h(9,1): error: unknown type name 'namespace'
         namespace std_msgs
         ^~~~~~~~~
C:\Users\tsemwal\Documents\Atmel Studio\7.0\ros_hello\ros_hello\ArduinoCore\include\libraries\ros_lib\std_msgs\string.h(10,1): error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
         {
         ^
        make: *** [src/core/itoa.o] Error 1
        "C:\Program Files (x86)\Atmel\Studio\7.0\toolchain\arm\arm-gnu-toolchain\bin\arm-none-eabi-gcc.exe"  -x c -mthumb -D__SAMD21G18A__ -DDEBUG -DF_CPU=48000000L -DARDUINO=10809 -DARDUINO_SAMD_ZERO -DARDUINO_ARCH_SAMD -DUSB_VID=0x2341 -DUSB_PID=0x804d -DUSB_PRODUCT="\"Arduino Zero\"" -DUSB_MANUFACTURER="\"Arduino LLC\"" -DUSBCON -DSAMD_SERIES  -I"C:\Program Files (x86)\Atmel\Studio\7.0\Packs\arm\cmsis\5.0.1\CMSIS\Include" -I"..\include\libraries\ros_lib" -I"..\include\libraries\ros_lib\actionlib" -I"..\include\libraries\ros_lib\actionlib_msgs" -I"..\include\libraries\ros_lib\actionlib_tutorials" -I"..\include\libraries\ros_lib\bond" -I"..\include\libraries\ros_lib\control_msgs" -I"..\include\libraries\ros_lib\diagnostic_msgs" -I"..\include\libraries\ros_lib\dynamic_reconfigure" -I"..\include\libraries\ros_lib\examples\BlinkM" -I"..\include\libraries\ros_lib\gazebo_msgs" -I"..\include\libraries\ros_lib\geometry_msgs" -I"..\include\libraries\ros_lib\laser_assembler" -I"..\include\libraries\ros_lib\map_msgs" -I"..\include\libraries\ros_lib\nav_msgs" -I"..\include\libraries\ros_lib\nodelet" -I"..\include\libraries\ros_lib\pcl_msgs" -I"..\include\libraries\ros_lib\polled_camera" -I"..\include\libraries\ros_lib\ros" -I"..\include\libraries\ros_lib\roscpp" -I"..\include\libraries\ros_lib\roscpp_tutorials" -I"..\include\libraries\ros_lib\rosgraph_msgs" -I"..\include\libraries\ros_lib\rospy_tutorials" -I"..\include\libraries\ros_lib\rosserial_arduino" -I"..\include\libraries\ros_lib\rosserial_msgs" -I"..\include\libraries\ros_lib\sensor_msgs" -I"..\include\libraries\ros_lib\shape_msgs" -I"..\include\libraries\ros_lib\smach_msgs" -I"..\include\libraries\ros_lib\std_msgs" -I"..\include\libraries\ros_lib\std_srvs" -I"..\include\libraries\ros_lib\stereo_msgs" -I"..\include\libraries\ros_lib\tf" -I"..\include\libraries\ros_lib\tf2_msgs" -I"..\include\libraries\ros_lib\theora_image_transport" -I"..\include\libraries\ros_lib\topic_tools" -I"..\include\libraries\ros_lib\trajectory_msgs" -I"..\include\libraries\ros_lib\turtlesim" -I"..\include\libraries\ros_lib\turtle_actionlib" -I"..\include\libraries\ros_lib\visualization_msgs" -I"..\include\core" -I"..\include\core\avr" -I"..\include\core\USB" -I"..\include\variants" -I"..\include\core\samd21" -I"..\include\core\samd21\include" -I"..\include\core\samd21\include\component" -I"..\include\core\samd21\include\instance" -I"..\include\core\samd21\include\pio"  -Os -fno-threadsafe-statics -fno-exceptions -ffunction-sections -fdata-sections -g3 -w -mcpu=cortex-m0plus -c -std=gnu11 --param max-inline-insns-single=500 -nostdlib -MD -MP -MF "src/core/itoa.d" -MT"src/core/itoa.d" -MT"src/core/itoa.o"   -o "src/core/itoa.o" "../src/core/itoa.c" 
C:\Users\tsemwal\Documents\Atmel Studio\7.0\ros_hello\ros_hello\ArduinoCore\Debug\Makefile(342,1): error: recipe for target 'src/core/itoa.o' failed
        make: *** Waiting for unfinished jobs....
        Building file: ../src/core/delay.c
        Invoking: ARM/GNU C Compiler : 6.3.1
        In file included from ..\include\libraries\ros_lib\std_msgs/string.h:7:0,
                         from ..\include\core/Arduino.h:26,
                         from ../src/core/delay.c:20:
C:\Users\tsemwal\Documents\Atmel Studio\7.0\ros_hello\ros_hello\ArduinoCore\include\libraries\ros_lib\ros\msg.h(41,1): error: unknown type name 'namespace'
         namespace ros
         ^~~~~~~~~
C:\Users\tsemwal\Documents\Atmel Studio\7.0\ros_hello\ros_hello\ArduinoCore\include\libraries\ros_lib\ros\msg.h(42,1): error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
         {
         ^
        In file included from ..\include\core/Arduino.h:26:0,
                         from ../src/core/delay.c:20:
C:\Users\tsemwal\Documents\Atmel Studio\7.0\ros_hello\ros_hello\ArduinoCore\include\libraries\ros_lib\std_msgs\string.h(9,1): error: unknown type name 'namespace'
         namespace std_msgs
         ^~~~~~~~~
C:\Users\tsemwal\Documents\Atmel Studio\7.0\ros_hello\ros_hello\ArduinoCore\include\libraries\ros_lib\std_msgs\string.h(10,1): error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
         {
         ^
        make: *** [src/core/delay.o] Error 1
        "C:\Program Files (x86)\Atmel\Studio\7.0\toolchain\arm\arm-gnu-toolchain\bin\arm-none-eabi-gcc.exe"  -x c -mthumb -D__SAMD21G18A__ -DDEBUG -DF_CPU=48000000L -DARDUINO=10809 -DARDUINO_SAMD_ZERO -DARDUINO_ARCH_SAMD -DUSB_VID=0x2341 -DUSB_PID=0x804d -DUSB_PRODUCT="\"Arduino Zero\"" -DUSB_MANUFACTURER="\"Arduino LLC\"" -DUSBCON -DSAMD_SERIES  -I"C:\Program Files (x86)\Atmel\Studio\7.0\Packs\arm\cmsis\5.0.1\CMSIS\Include" -I"..\include\libraries\ros_lib" -I"..\include\libraries\ros_lib\actionlib" -I"..\include\libraries\ros_lib\actionlib_msgs" -I"..\include\libraries\ros_lib\actionlib_tutorials" -I"..\include\libraries\ros_lib\bond" -I"..\include\libraries\ros_lib\control_msgs" -I"..\include\libraries\ros_lib\diagnostic_msgs" -I"..\include\libraries\ros_lib\dynamic_reconfigure" -I"..\include\libraries\ros_lib\examples\BlinkM" -I"..\include\libraries\ros_lib\gazebo_msgs" -I"..\include\libraries\ros_lib\geometry_msgs" -I"..\include\libraries\ros_lib\laser_assembler" -I"..\include\libraries\ros_lib\map_msgs" -I"..\include\libraries\ros_lib\nav_msgs" -I"..\include\libraries\ros_lib\nodelet" -I"..\include\libraries\ros_lib\pcl_msgs" -I"..\include\libraries\ros_lib\polled_camera" -I"..\include\libraries\ros_lib\ros" -I"..\include\libraries\ros_lib\roscpp" -I"..\include\libraries\ros_lib\roscpp_tutorials" -I"..\include\libraries\ros_lib\rosgraph_msgs" -I"..\include\libraries\ros_lib\rospy_tutorials" -I"..\include\libraries\ros_lib\rosserial_arduino" -I"..\include\libraries\ros_lib\rosserial_msgs" -I"..\include\libraries\ros_lib\sensor_msgs" -I"..\include\libraries\ros_lib\shape_msgs" -I"..\include\libraries\ros_lib\smach_msgs" -I"..\include\libraries\ros_lib\std_msgs" -I"..\include\libraries\ros_lib\std_srvs" -I"..\include\libraries\ros_lib\stereo_msgs" -I"..\include\libraries\ros_lib\tf" -I"..\include\libraries\ros_lib\tf2_msgs" -I"..\include\libraries\ros_lib\theora_image_transport" -I"..\include\libraries\ros_lib\topic_tools" -I"..\include\libraries\ros_lib\trajectory_msgs" -I"..\include\libraries\ros_lib\turtlesim" -I"..\include\libraries\ros_lib\turtle_actionlib" -I"..\include\libraries\ros_lib\visualization_msgs" -I"..\include\core" -I"..\include\core\avr" -I"..\include\core\USB" -I"..\include\variants" -I"..\include\core\samd21" -I"..\include\core\samd21\include" -I"..\include\core\samd21\include\component" -I"..\include\core\samd21\include\instance" -I"..\include\core\samd21\include\pio"  -Os -fno-threadsafe-statics -fno-exceptions -ffunction-sections -fdata-sections -g3 -w -mcpu=cortex-m0plus -c -std=gnu11 --param max-inline-insns-single=500 -nostdlib -MD -MP -MF "src/core/delay.d" -MT"src/core/delay.d" -MT"src/core/delay.o"   -o "src/core/delay.o" "../src/core/delay.c" 
C:\Users\tsemwal\Documents\Atmel Studio\7.0\ros_hello\ros_hello\ArduinoCore\Debug\Makefile(321,1): error: recipe for target 'src/core/delay.o' failed
        Building file: ../src/core/PreprocessingAssembly/pulse_asm.S
        Invoking: ARM/GNU Preprocessing Assembler : 6.3.1
        "C:\Program Files (x86)\Atmel\Studio\7.0\toolchain\arm\arm-gnu-toolchain\bin\arm-none-eabi-gcc.exe" -mthumb -x assembler-with-cpp -c -mcpu=cortex-m0plus -I "C:\Program Files (x86)\Atmel\Studio\7.0\Packs\arm\cmsis\5.0.1\CMSIS\Include" -I "C:\Program Files (x86)\Atmel\Studio\7.0\Packs\atmel\SAMD21_DFP\1.3.304\samd21a\include"  -MD -MP -MF "src/core/PreprocessingAssembly/pulse_asm.d" -MT"src/core/PreprocessingAssembly/pulse_asm.d" -MT"src/core/PreprocessingAssembly/pulse_asm.o" -D__SAMD21G18A__ -Wa,-g   -o "src/core/PreprocessingAssembly/pulse_asm.o" "../src/core/PreprocessingAssembly/pulse_asm.S" 
        Finished building: ../src/core/PreprocessingAssembly/pulse_asm.S
        Building file: ../src/core/IPAddress.cpp
        Invoking: ARM/GNU C Compiler : 6.3.1
        In file included from ..\include\core/Arduino.h:26:0,
                         from ../src/core/IPAddress.cpp:20:
        ..\include\libraries\ros_lib\std_msgs/string.h: In member function 'virtual int std_msgs::String::serialize(unsigned char*) const':
C:\Users\tsemwal\Documents\Atmel Studio\7.0\ros_hello\ros_hello\ArduinoCore\include\libraries\ros_lib\std_msgs\string.h(26,47): error: 'strlen' was not declared in this scope
               uint32_t length_data = strlen(this->data);
                                                       ^
C:\Users\tsemwal\Documents\Atmel Studio\7.0\ros_hello\ros_hello\ArduinoCore\include\libraries\ros_lib\std_msgs\string.h(29,57): error: 'memcpy' was not declared in this scope
               memcpy(outbuffer + offset, this->data, length_data);
                                                                 ^
        In file included from ..\include\core/Stream.h:26:0,
                         from ..\include\core/HardwareSerial.h:24,
                         from ..\include\core/Arduino.h:78,
                         from ../src/core/IPAddress.cpp:20:
        ..\include\core/Print.h: In member function 'size_t Print::write(const char*)':
        "C:\Program Files (x86)\Atmel\Studio\7.0\toolchain\arm\arm-gnu-toolchain\bin\arm-none-eabi-g++.exe" -mthumb -D__SAMD21G18A__ -DDEBUG -DF_CPU=48000000L -DARDUINO=10809 -DARDUINO_SAMD_ZERO -DARDUINO_ARCH_SAMD -DUSB_VID=0x2341 -DUSB_PID=0x804d -DUSB_PRODUCT="\"Arduino Zero\"" -DUSB_MANUFACTURER="\"Arduino LLC\"" -DUSBCON -DSAMD_SERIES  -I"C:\Program Files (x86)\Atmel\Studio\7.0\Packs\arm\cmsis\5.0.1\CMSIS\Include" -I"..\include\libraries\ros_lib" -I"..\include\libraries\ros_lib\actionlib" -I"..\include\libraries\ros_lib\actionlib_msgs" -I"..\include\libraries\ros_lib\actionlib_tutorials" -I"..\include\libraries\ros_lib\bond" -I"..\include\libraries\ros_lib\control_msgs" -I"..\include\libraries\ros_lib\diagnostic_msgs" -I"..\include\libraries\ros_lib\dynamic_reconfigure" -I"..\include\libraries\ros_lib\examples\BlinkM" -I"..\include\libraries\ros_lib\gazebo_msgs" -I"..\include\libraries\ros_lib\geometry_msgs" -I"..\include\libraries\ros_lib\laser_assembler" -I"..\include\libraries\ros_lib\map_msgs" -I"..\include\libraries\ros_lib\nav_msgs" -I"..\include\libraries\ros_lib\nodelet" -I"..\include\libraries\ros_lib\pcl_msgs" -I"..\include\libraries\ros_lib\polled_camera" -I"..\include\libraries\ros_lib\ros" -I"..\include\libraries\ros_lib\roscpp" -I"..\include\libraries\ros_lib\roscpp_tutorials" -I"..\include\libraries\ros_lib\rosgraph_msgs" -I"..\include\libraries\ros_lib\rospy_tutorials" -I"..\include\libraries\ros_lib\rosserial_arduino" -I"..\include\libraries\ros_lib\rosserial_msgs" -I"..\include\libraries\ros_lib\sensor_msgs" -I"..\include\libraries\ros_lib\shape_msgs" -I"..\include\libraries\ros_lib\smach_msgs" -I"..\include\libraries\ros_lib\std_msgs" -I"..\include\libraries\ros_lib\std_srvs" -I"..\include\libraries\ros_lib\stereo_msgs" -I"..\include\libraries\ros_lib\tf" -I"..\include\libraries\ros_lib\tf2_msgs" -I"..\include\libraries\ros_lib\theora_image_transport" -I"..\include\libraries\ros_lib\topic_tools" -I"..\include\libraries\ros_lib\trajectory_msgs" -I"..\include\libraries\ros_lib\turtlesim" -I"..\include\libraries\ros_lib\turtle_actionlib" -I"..\include\libraries\ros_lib\visualization_msgs" -I"..\include\core" -I"..\include\core\avr" -I"..\include\core\USB" -I"..\include\variants" -I"..\include\core\samd21" -I"..\include\core\samd21\include" -I"..\include\core\samd21\include\component" -I"..\include\core\samd21\include\instance" -I"..\include\core\samd21\include\pio"  -Os -fno-threadsafe-statics -fno-exceptions -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions -g3 -w -mcpu=cortex-m0plus -c -std=gnu++11 --param max-inline-insns-single=500 -nostdlib -MD -MP -MF "src/core/IPAddress.d" -MT"src/core/IPAddress.d" -MT"src/core/IPAddress.o"   -o "src/core/IPAddress.o" "../src/core/IPAddress.cpp" 
C:\Users\tsemwal\Documents\Atmel Studio\7.0\ros_hello\ros_hello\ArduinoCore\Debug\Makefile(335,1): error: recipe for target 'src/core/IPAddress.o' failed
C:\Users\tsemwal\Documents\Atmel Studio\7.0\ros_hello\ros_hello\ArduinoCore\include\core\Print.h(53,52): error: 'strlen' was not declared in this scope
               return write((const uint8_t *)str, strlen(str));
                                                            ^
        ../src/core/IPAddress.cpp: In constructor 'IPAddress::IPAddress(const uint8_t*)':
C:\Users\tsemwal\Documents\Atmel Studio\7.0\ros_hello\ros_hello\ArduinoCore\src\core\IPAddress.cpp(43,59): error: 'memcpy' was not declared in this scope
             memcpy(_address.bytes, address, sizeof(_address.bytes));
                                                                   ^
        ../src/core/IPAddress.cpp: In member function 'IPAddress& IPAddress::operator=(const uint8_t*)':
C:\Users\tsemwal\Documents\Atmel Studio\7.0\ros_hello\ros_hello\ArduinoCore\src\core\IPAddress.cpp(90,59): error: 'memcpy' was not declared in this scope
             memcpy(_address.bytes, address, sizeof(_address.bytes));
                                                                   ^
        ../src/core/IPAddress.cpp: In member function 'bool IPAddress::operator==(const uint8_t*) const':
C:\Users\tsemwal\Documents\Atmel Studio\7.0\ros_hello\ros_hello\ArduinoCore\src\core\IPAddress.cpp(102,63): error: 'memcmp' was not declared in this scope
             return memcmp(addr, _address.bytes, sizeof(_address.bytes)) == 0;
                                                                       ^
        make: *** [src/core/IPAddress.o] Error 1
        Building file: ../src/core/cortex_handlers.c
        Invoking: ARM/GNU C Compiler : 6.3.1
        "C:\Program Files (x86)\Atmel\Studio\7.0\toolchain\arm\arm-gnu-toolchain\bin\arm-none-eabi-gcc.exe"  -x c -mthumb -D__SAMD21G18A__ -DDEBUG -DF_CPU=48000000L -DARDUINO=10809 -DARDUINO_SAMD_ZERO -DARDUINO_ARCH_SAMD -DUSB_VID=0x2341 -DUSB_PID=0x804d -DUSB_PRODUCT="\"Arduino Zero\"" -DUSB_MANUFACTURER="\"Arduino LLC\"" -DUSBCON -DSAMD_SERIES  -I"C:\Program Files (x86)\Atmel\Studio\7.0\Packs\arm\cmsis\5.0.1\CMSIS\Include" -I"..\include\libraries\ros_lib" -I"..\include\libraries\ros_lib\actionlib" -I"..\include\libraries\ros_lib\actionlib_msgs" -I"..\include\libraries\ros_lib\actionlib_tutorials" -I"..\include\libraries\ros_lib\bond" -I"..\include\libraries\ros_lib\control_msgs" -I"..\include\libraries\ros_lib\diagnostic_msgs" -I"..\include\libraries\ros_lib\dynamic_reconfigure" -I"..\include\libraries\ros_lib\examples\BlinkM" -I"..\include\libraries\ros_lib\gazebo_msgs" -I"..\include\libraries\ros_lib\geometry_msgs" -I"..\include\libraries\ros_lib\laser_assembler" -I"..\include\libraries\ros_lib\map_msgs" -I"..\include\libraries\ros_lib\nav_msgs" -I"..\include\libraries\ros_lib\nodelet" -I"..\include\libraries\ros_lib\pcl_msgs" -I"..\include\libraries\ros_lib\polled_camera" -I"..\include\libraries\ros_lib\ros" -I"..\include\libraries\ros_lib\roscpp" -I"..\include\libraries\ros_lib\roscpp_tutorials" -I"..\include\libraries\ros_lib\rosgraph_msgs" -I"..\include\libraries\ros_lib\rospy_tutorials" -I"..\include\libraries\ros_lib\rosserial_arduino" -I"..\include\libraries\ros_lib\rosserial_msgs" -I"..\include\libraries\ros_lib\sensor_msgs" -I"..\include\libraries\ros_lib\shape_msgs" -I"..\include\libraries\ros_lib\smach_msgs" -I"..\include\libraries\ros_lib\std_msgs" -I"..\include\libraries\ros_lib\std_srvs" -I"..\include\libraries\ros_lib\stereo_msgs" -I"..\include\libraries\ros_lib\tf" -I"..\include\libraries\ros_lib\tf2_msgs" -I"..\include\libraries\ros_lib\theora_image_transport" -I"..\include\libraries\ros_lib\topic_tools" -I"..\include\libraries\ros_lib\trajectory_msgs" -I"..\include\libraries\ros_lib\turtlesim" -I"..\include\libraries\ros_lib\turtle_actionlib" -I"..\include\libraries\ros_lib\visualization_msgs" -I"..\include\core" -I"..\include\core\avr" -I"..\include\core\USB" -I"..\include\variants" -I"..\include\core\samd21" -I"..\include\core\samd21\include" -I"..\include\core\samd21\include\component" -I"..\include\core\samd21\include\instance" -I"..\include\core\samd21\include\pio"  -Os -fno-threadsafe-statics -fno-exceptions -ffunction-sections -fdata-sections -g3 -w -mcpu=cortex-m0plus -c -std=gnu11 --param max-inline-insns-single=500 -nostdlib -MD -MP -MF "src/core/cortex_handlers.d" -MT"src/core/cortex_handlers.d" -MT"src/core/cortex_handlers.o"   -o "src/core/cortex_handlers.o" "../src/core/cortex_handlers.c" 
        Finished building: ../src/core/cortex_handlers.c
        Building file: ../src/core/main.cpp
        Invoking: ARM/GNU C Compiler : 6.3.1
        In file included from ..\include\core/Arduino.h:26:0,
                         from ../src/core/main.cpp:20:
        ..\include\libraries\ros_lib\std_msgs/string.h: In member function 'virtual int std_msgs::String::serialize(unsigned char*) const':
C:\Users\tsemwal\Documents\Atmel Studio\7.0\ros_hello\ros_hello\ArduinoCore\include\libraries\ros_lib\std_msgs\string.h(26,47): error: 'strlen' was not declared in this scope
               uint32_t length_data = strlen(this->data);
                                                       ^
C:\Users\tsemwal\Documents\Atmel Studio\7.0\ros_hello\ros_hello\ArduinoCore\include\libraries\ros_lib\std_msgs\string.h(29,57): error: 'memcpy' was not declared in this scope
               memcpy(outbuffer + offset, this->data, length_data);
                                                                 ^
        In file included from ..\include\core/Stream.h:26:0,
                         from ..\include\core/HardwareSerial.h:24,
                         from ..\include\core/Arduino.h:78,
                         from ../src/core/main.cpp:20:
        ..\include\core/Print.h: In member function 'size_t Print::write(const char*)':
C:\Users\tsemwal\Documents\Atmel Studio\7.0\ros_hello\ros_hello\ArduinoCore\include\core\Print.h(53,52): error: 'strlen' was not declared in this scope
               return write((const uint8_t *)str, strlen(str));
                                                            ^
        make: *** [src/core/main.o] Error 1
        "C:\Program Files (x86)\Atmel\Studio\7.0\toolchain\arm\arm-gnu-toolchain\bin\arm-none-eabi-g++.exe" -mthumb -D__SAMD21G18A__ -DDEBUG -DF_CPU=48000000L -DARDUINO=10809 -DARDUINO_SAMD_ZERO -DARDUINO_ARCH_SAMD -DUSB_VID=0x2341 -DUSB_PID=0x804d -DUSB_PRODUCT="\"Arduino Zero\"" -DUSB_MANUFACTURER="\"Arduino LLC\"" -DUSBCON -DSAMD_SERIES  -I"C:\Program Files (x86)\Atmel\Studio\7.0\Packs\arm\cmsis\5.0.1\CMSIS\Include" -I"..\include\libraries\ros_lib" -I"..\include\libraries\ros_lib\actionlib" -I"..\include\libraries\ros_lib\actionlib_msgs" -I"..\include\libraries\ros_lib\actionlib_tutorials" -I"..\include\libraries\ros_lib\bond" -I"..\include\libraries\ros_lib\control_msgs" -I"..\include\libraries\ros_lib\diagnostic_msgs" -I"..\include\libraries\ros_lib\dynamic_reconfigure" -I"..\include\libraries\ros_lib\examples\BlinkM" -I"..\include\libraries\ros_lib\gazebo_msgs" -I"..\include\libraries\ros_lib\geometry_msgs" -I"..\include\libraries\ros_lib\laser_assembler" -I"..\include\libraries\ros_lib\map_msgs" -I"..\include\libraries\ros_lib\nav_msgs" -I"..\include\libraries\ros_lib\nodelet" -I"..\include\libraries\ros_lib\pcl_msgs" -I"..\include\libraries\ros_lib\polled_camera" -I"..\include\libraries\ros_lib\ros" -I"..\include\libraries\ros_lib\roscpp" -I"..\include\libraries\ros_lib\roscpp_tutorials" -I"..\include\libraries\ros_lib\rosgraph_msgs" -I"..\include\libraries\ros_lib\rospy_tutorials" -I"..\include\libraries\ros_lib\rosserial_arduino" -I"..\include\libraries\ros_lib\rosserial_msgs" -I"..\include\libraries\ros_lib\sensor_msgs" -I"..\include\libraries\ros_lib\shape_msgs" -I"..\include\libraries\ros_lib\smach_msgs" -I"..\include\libraries\ros_lib\std_msgs" -I"..\include\libraries\ros_lib\std_srvs" -I"..\include\libraries\ros_lib\stereo_msgs" -I"..\include\libraries\ros_lib\tf" -I"..\include\libraries\ros_lib\tf2_msgs" -I"..\include\libraries\ros_lib\theora_image_transport" -I"..\include\libraries\ros_lib\topic_tools" -I"..\include\libraries\ros_lib\trajectory_msgs" -I"..\include\libraries\ros_lib\turtlesim" -I"..\include\libraries\ros_lib\turtle_actionlib" -I"..\include\libraries\ros_lib\visualization_msgs" -I"..\include\core" -I"..\include\core\avr" -I"..\include\core\USB" -I"..\include\variants" -I"..\include\core\samd21" -I"..\include\core\samd21\include" -I"..\include\core\samd21\include\component" -I"..\include\core\samd21\include\instance" -I"..\include\core\samd21\include\pio"  -Os -fno-threadsafe-statics -fno-exceptions -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions -g3 -w -mcpu=cortex-m0plus -c -std=gnu++11 --param max-inline-insns-single=500 -nostdlib -MD -MP -MF "src/core/main.d" -MT"src/core/main.d" -MT"src/core/main.o"   -o "src/core/main.o" "../src/core/main.cpp" 
C:\Users\tsemwal\Documents\Atmel Studio\7.0\ros_hello\ros_hello\ArduinoCore\Debug\Makefile(349,1): error: recipe for target 'src/core/main.o' failed
        Building file: ../src/core/new.cpp
        Invoking: ARM/GNU C Compiler : 6.3.1
        "C:\Program Files (x86)\Atmel\Studio\7.0\toolchain\arm\arm-gnu-toolchain\bin\arm-none-eabi-g++.exe" -mthumb -D__SAMD21G18A__ -DDEBUG -DF_CPU=48000000L -DARDUINO=10809 -DARDUINO_SAMD_ZERO -DARDUINO_ARCH_SAMD -DUSB_VID=0x2341 -DUSB_PID=0x804d -DUSB_PRODUCT="\"Arduino Zero\"" -DUSB_MANUFACTURER="\"Arduino LLC\"" -DUSBCON -DSAMD_SERIES  -I"C:\Program Files (x86)\Atmel\Studio\7.0\Packs\arm\cmsis\5.0.1\CMSIS\Include" -I"..\include\libraries\ros_lib" -I"..\include\libraries\ros_lib\actionlib" -I"..\include\libraries\ros_lib\actionlib_msgs" -I"..\include\libraries\ros_lib\actionlib_tutorials" -I"..\include\libraries\ros_lib\bond" -I"..\include\libraries\ros_lib\control_msgs" -I"..\include\libraries\ros_lib\diagnostic_msgs" -I"..\include\libraries\ros_lib\dynamic_reconfigure" -I"..\include\libraries\ros_lib\examples\BlinkM" -I"..\include\libraries\ros_lib\gazebo_msgs" -I"..\include\libraries\ros_lib\geometry_msgs" -I"..\include\libraries\ros_lib\laser_assembler" -I"..\include\libraries\ros_lib\map_msgs" -I"..\include\libraries\ros_lib\nav_msgs" -I"..\include\libraries\ros_lib\nodelet" -I"..\include\libraries\ros_lib\pcl_msgs" -I"..\include\libraries\ros_lib\polled_camera" -I"..\include\libraries\ros_lib\ros" -I"..\include\libraries\ros_lib\roscpp" -I"..\include\libraries\ros_lib\roscpp_tutorials" -I"..\include\libraries\ros_lib\rosgraph_msgs" -I"..\include\libraries\ros_lib\rospy_tutorials" -I"..\include\libraries\ros_lib\rosserial_arduino" -I"..\include\libraries\ros_lib\rosserial_msgs" -I"..\include\libraries\ros_lib\sensor_msgs" -I"..\include\libraries\ros_lib\shape_msgs" -I"..\include\libraries\ros_lib\smach_msgs" -I"..\include\libraries\ros_lib\std_msgs" -I"..\include\libraries\ros_lib\std_srvs" -I"..\include\libraries\ros_lib\stereo_msgs" -I"..\include\libraries\ros_lib\tf" -I"..\include\libraries\ros_lib\tf2_msgs" -I"..\include\libraries\ros_lib\theora_image_transport" -I"..\include\libraries\ros_lib\topic_tools" -I"..\include\libraries\ros_lib\trajectory_msgs" -I"..\include\libraries\ros_lib\turtlesim" -I"..\include\libraries\ros_lib\turtle_actionlib" -I"..\include\libraries\ros_lib\visualization_msgs" -I"..\include\core" -I"..\include\core\avr" -I"..\include\core\USB" -I"..\include\variants" -I"..\include\core\samd21" -I"..\include\core\samd21\include" -I"..\include\core\samd21\include\component" -I"..\include\core\samd21\include\instance" -I"..\include\core\samd21\include\pio"  -Os -fno-threadsafe-statics -fno-exceptions -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions -g3 -w -mcpu=cortex-m0plus -c -std=gnu++11 --param max-inline-insns-single=500 -nostdlib -MD -MP -MF "src/core/new.d" -MT"src/core/new.d" -MT"src/core/new.o"   -o "src/core/new.o" "../src/core/new.cpp" 
        Finished building: ../src/core/new.cpp
        Building file: ../src/core/Print.cpp
        Invoking: ARM/GNU C Compiler : 6.3.1
        In file included from ..\include\core/Arduino.h:26:0,
                         from ../src/core/Print.cpp:20:
        ..\include\libraries\ros_lib\std_msgs/string.h: In member function 'virtual int std_msgs::String::serialize(unsigned char*) const':
C:\Users\tsemwal\Documents\Atmel Studio\7.0\ros_hello\ros_hello\ArduinoCore\include\libraries\ros_lib\std_msgs\string.h(26,47): error: 'strlen' was not declared in this scope
               uint32_t length_data = strlen(this->data);
                                                       ^
C:\Users\tsemwal\Documents\Atmel Studio\7.0\ros_hello\ros_hello\ArduinoCore\include\libraries\ros_lib\std_msgs\string.h(29,57): error: 'memcpy' was not declared in this scope
               memcpy(outbuffer + offset, this->data, length_data);
                                                                 ^
        "C:\Program Files (x86)\Atmel\Studio\7.0\toolchain\arm\arm-gnu-toolchain\bin\arm-none-eabi-g++.exe" -mthumb -D__SAMD21G18A__ -DDEBUG -DF_CPU=48000000L -DARDUINO=10809 -DARDUINO_SAMD_ZERO -DARDUINO_ARCH_SAMD -DUSB_VID=0x2341 -DUSB_PID=0x804d -DUSB_PRODUCT="\"Arduino Zero\"" -DUSB_MANUFACTURER="\"Arduino LLC\"" -DUSBCON -DSAMD_SERIES  -I"C:\Program Files (x86)\Atmel\Studio\7.0\Packs\arm\cmsis\5.0.1\CMSIS\Include" -I"..\include\libraries\ros_lib" -I"..\include\libraries\ros_lib\actionlib" -I"..\include\libraries\ros_lib\actionlib_msgs" -I"..\include\libraries\ros_lib\actionlib_tutorials" -I"..\include\libraries\ros_lib\bond" -I"..\include\libraries\ros_lib\control_msgs" -I"..\include\libraries\ros_lib\diagnostic_msgs" -I"..\include\libraries\ros_lib\dynamic_reconfigure" -I"..\include\libraries\ros_lib\examples\BlinkM" -I"..\include\libraries\ros_lib\gazebo_msgs" -I"..\include\libraries\ros_lib\geometry_msgs" -I"..\include\libraries\ros_lib\laser_assembler" -I"..\include\libraries\ros_lib\map_msgs" -I"..\include\libraries\ros_lib\nav_msgs" -I"..\include\libraries\ros_lib\nodelet" -I"..\include\libraries\ros_lib\pcl_msgs" -I"..\include\libraries\ros_lib\polled_camera" -I"..\include\libraries\ros_lib\ros" -I"..\include\libraries\ros_lib\roscpp" -I"..\include\libraries\ros_lib\roscpp_tutorials" -I"..\include\libraries\ros_lib\rosgraph_msgs" -I"..\include\libraries\ros_lib\rospy_tutorials" -I"..\include\libraries\ros_lib\rosserial_arduino" -I"..\include\libraries\ros_lib\rosserial_msgs" -I"..\include\libraries\ros_lib\sensor_msgs" -I"..\include\libraries\ros_lib\shape_msgs" -I"..\include\libraries\ros_lib\smach_msgs" -I"..\include\libraries\ros_lib\std_msgs" -I"..\include\libraries\ros_lib\std_srvs" -I"..\include\libraries\ros_lib\stereo_msgs" -I"..\include\libraries\ros_lib\tf" -I"..\include\libraries\ros_lib\tf2_msgs" -I"..\include\libraries\ros_lib\theora_image_transport" -I"..\include\libraries\ros_lib\topic_tools" -I"..\include\libraries\ros_lib\trajectory_msgs" -I"..\include\libraries\ros_lib\turtlesim" -I"..\include\libraries\ros_lib\turtle_actionlib" -I"..\include\libraries\ros_lib\visualization_msgs" -I"..\include\core" -I"..\include\core\avr" -I"..\include\core\USB" -I"..\include\variants" -I"..\include\core\samd21" -I"..\include\core\samd21\include" -I"..\include\core\samd21\include\component" -I"..\include\core\samd21\include\instance" -I"..\include\core\samd21\include\pio"  -Os -fno-threadsafe-statics -fno-exceptions -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions -g3 -w -mcpu=cortex-m0plus -c -std=gnu++11 --param max-inline-insns-single=500 -nostdlib -MD -MP -MF "src/core/Print.d" -MT"src/core/Print.d" -MT"src/core/Print.o"   -o "src/core/Print.o" "../src/core/Print.cpp" 
C:\Users\tsemwal\Documents\Atmel Studio\7.0\ros_hello\ros_hello\ArduinoCore\Debug\Makefile(363,1): error: recipe for target 'src/core/Print.o' failed
        In file included from ..\include\core/Stream.h:26:0,
                         from ..\include\core/HardwareSerial.h:24,
                         from ..\include\core/Arduino.h:78,
                         from ../src/core/Print.cpp:20:
        ..\include\core/Print.h: In member function 'size_t Print::write(const char*)':
C:\Users\tsemwal\Documents\Atmel Studio\7.0\ros_hello\ros_hello\ArduinoCore\include\core\Print.h(53,52): error: 'strlen' was not declared in this scope
               return write((const uint8_t *)str, strlen(str));
                                                            ^
        make: *** [src/core/Print.o] Error 1
    Done executing task "RunCompilerTask" -- FAILED.
Done building target "CoreBuild" in project "ArduinoCore.cppproj" -- FAILED.
Done building project "ArduinoCore.cppproj" -- FAILED.

Build FAILED.
------ Build started: Project: HelloWorld, Configuration: Debug ARM ------
Build started.
Project "HelloWorld.cppproj" (default targets):
Target "PreBuildEvent" skipped, due to false condition; ('$(PreBuildEvent)'!='') was evaluated as (''!='').
Target "CoreBuild" in file "C:\Program Files (x86)\Atmel\Studio\7.0\Vs\Compiler.targets" from project "C:\Users\tsemwal\Documents\Atmel Studio\7.0\ros_hello\ros_hello\HelloWorld\HelloWorld.cppproj" (target "Build" depends on it):
    Task "RunCompilerTask"
        Shell Utils Path C:\Program Files (x86)\Atmel\Studio\7.0\shellUtils
        C:\Program Files (x86)\Atmel\Studio\7.0\shellUtils\make.exe all --jobs 8 --output-sync 
        Building file: .././Sketch.cpp
        Invoking: ARM/GNU C Compiler : 6.3.1
        In file included from ..\\..\ArduinoCore\include\core/Arduino.h:26:0,
                         from .././Sketch.cpp:2:
        ..\\..\ArduinoCore\include\libraries\ros_lib\std_msgs/string.h: In member function 'virtual int std_msgs::String::serialize(unsigned char*) const':
C:\Users\tsemwal\Documents\Atmel Studio\7.0\ros_hello\ros_hello\ArduinoCore\include\libraries\ros_lib\std_msgs\string.h(26,47): error: 'strlen' was not declared in this scope
               uint32_t length_data = strlen(this->data);
                                                       ^
C:\Users\tsemwal\Documents\Atmel Studio\7.0\ros_hello\ros_hello\ArduinoCore\include\libraries\ros_lib\std_msgs\string.h(29,57): error: 'memcpy' was not declared in this scope
               memcpy(outbuffer + offset, this->data, length_data);
                                                                 ^
        In file included from ..\\..\ArduinoCore\include\core/Stream.h:26:0,
                         from ..\\..\ArduinoCore\include\core/HardwareSerial.h:24,
                         from ..\\..\ArduinoCore\include\core/Arduino.h:78,
                         from .././Sketch.cpp:2:
        ..\\..\ArduinoCore\include\core/Print.h: In member function 'size_t Print::write(const char*)':
C:\Users\tsemwal\Documents\Atmel Studio\7.0\ros_hello\ros_hello\ArduinoCore\include\core\Print.h(53,52): error: 'strlen' was not declared in this scope
               return write((const uint8_t *)str, strlen(str));
                                                            ^
        In file included from ..\\..\ArduinoCore\include\libraries\ros_lib/ros/node_handle.h:41:0,
                         from ..\\..\ArduinoCore\include\libraries\ros_lib/ros.h:38,
                         from .././Sketch.cpp:11:
        ..\\..\ArduinoCore\include\libraries\ros_lib/rosserial_msgs/TopicInfo.h: In member function 'virtual int rosserial_msgs::TopicInfo::serialize(unsigned char*) const':
C:\Users\tsemwal\Documents\Atmel Studio\7.0\ros_hello\ros_hello\ArduinoCore\include\libraries\ros_lib\rosserial_msgs\TopicInfo.h(49,59): error: 'strlen' was not declared in this scope
               uint32_t length_topic_name = strlen(this->topic_name);
                                                                   ^
C:\Users\tsemwal\Documents\Atmel Studio\7.0\ros_hello\ros_hello\ArduinoCore\include\libraries\ros_lib\rosserial_msgs\TopicInfo.h(52,69): error: 'memcpy' was not declared in this scope
        "C:\Program Files (x86)\Atmel\Studio\7.0\toolchain\arm\arm-gnu-toolchain\bin\arm-none-eabi-g++.exe" -mthumb -D__SAMD21G18A__ -DDEBUG -DF_CPU=48000000L -DARDUINO=10809 -DARDUINO_SAMD_ZERO -DARDUINO_ARCH_SAMD -DUSB_VID=0x2341 -DUSB_PID=0x804d -DUSB_PRODUCT="\"Arduino Zero\"" -DUSB_MANUFACTURER="\"Arduino LLC\"" -DUSBCON -DSAMD_SERIES  -I"C:\Program Files (x86)\Atmel\Studio\7.0\Packs\arm\cmsis\5.0.1\CMSIS\Include" -I"..\\..\ArduinoCore\include\core" -I"..\\..\ArduinoCore\include\variants" -I"..\\..\ArduinoCore\include\core\avr" -I"..\\..\ArduinoCore\include\core\samd21" -I"..\\..\ArduinoCore\include\core\USB" -I"..\\..\ArduinoCore\include\core\samd21\include" -I"..\\..\ArduinoCore\include\core\samd21\include\component" -I"..\\..\ArduinoCore\include\core\samd21\include\instance" -I"..\\..\ArduinoCore\include\core\samd21\include\pio" -I"..\\..\ArduinoCore\include\libraries\ros_lib" -I"..\\..\ArduinoCore\include\libraries\ros_lib\actionlib" -I"..\\..\ArduinoCore\include\libraries\ros_lib\actionlib_msgs" -I"..\\..\ArduinoCore\include\libraries\ros_lib\actionlib_tutorials" -I"..\\..\ArduinoCore\include\libraries\ros_lib\bond" -I"..\\..\ArduinoCore\include\libraries\ros_lib\control_msgs" -I"..\\..\ArduinoCore\include\libraries\ros_lib\diagnostic_msgs" -I"..\\..\ArduinoCore\include\libraries\ros_lib\dynamic_reconfigure" -I"..\\..\ArduinoCore\include\libraries\ros_lib\gazebo_msgs" -I"..\\..\ArduinoCore\include\libraries\ros_lib\geometry_msgs" -I"..\\..\ArduinoCore\include\libraries\ros_lib\laser_assembler" -I"..\\..\ArduinoCore\include\libraries\ros_lib\map_msgs" -I"..\\..\ArduinoCore\include\libraries\ros_lib\nav_msgs" -I"..\\..\ArduinoCore\include\libraries\ros_lib\nodelet" -I"..\\..\ArduinoCore\include\libraries\ros_lib\pcl_msgs" -I"..\\..\ArduinoCore\include\libraries\ros_lib\polled_camera" -I"..\\..\ArduinoCore\include\libraries\ros_lib\ros" -I"..\\..\ArduinoCore\include\libraries\ros_lib\roscpp" -I"..\\..\ArduinoCore\include\libraries\ros_lib\roscpp_tutorials" -I"..\\..\ArduinoCore\include\libraries\ros_lib\rosgraph_msgs" -I"..\\..\ArduinoCore\include\libraries\ros_lib\rospy_tutorials" -I"..\\..\ArduinoCore\include\libraries\ros_lib\rosserial_arduino" -I"..\\..\ArduinoCore\include\libraries\ros_lib\rosserial_msgs" -I"..\\..\ArduinoCore\include\libraries\ros_lib\sensor_msgs" -I"..\\..\ArduinoCore\include\libraries\ros_lib\shape_msgs" -I"..\\..\ArduinoCore\include\libraries\ros_lib\smach_msgs" -I"..\\..\ArduinoCore\include\libraries\ros_lib\std_msgs" -I"..\\..\ArduinoCore\include\libraries\ros_lib\std_srvs" -I"..\\..\ArduinoCore\include\libraries\ros_lib\stereo_msgs" -I"..\\..\ArduinoCore\include\libraries\ros_lib\tf" -I"..\\..\ArduinoCore\include\libraries\ros_lib\tf2_msgs" -I"..\\..\ArduinoCore\include\libraries\ros_lib\theora_image_transport" -I"..\\..\ArduinoCore\include\libraries\ros_lib\topic_tools" -I"..\\..\ArduinoCore\include\libraries\ros_lib\trajectory_msgs" -I"..\\..\ArduinoCore\include\libraries\ros_lib\turtlesim" -I"..\\..\ArduinoCore\include\libraries\ros_lib\turtle_actionlib" -I"..\\..\ArduinoCore\include\libraries\ros_lib\visualization_msgs" -I"..\\..\ArduinoCore\include\libraries\ros_lib\examples\BlinkM"  -Os -fno-threadsafe-statics -fno-exceptions -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions -g3 -w -mcpu=cortex-m0plus -c -std=gnu++11 --param max-inline-insns-single=500 -nostdlib -MD -MP -MF "Sketch.d" -MT"Sketch.d" -MT"Sketch.o"   -o "Sketch.o" ".././Sketch.cpp" 
C:\Users\tsemwal\Documents\Atmel Studio\7.0\ros_hello\ros_hello\HelloWorld\Debug\Makefile(81,1): error: recipe for target 'Sketch.o' failed
               memcpy(outbuffer + offset, this->topic_name, length_topic_name);
                                                                             ^
        In file included from ..\\..\ArduinoCore\include\libraries\ros_lib/ros/node_handle.h:42:0,
                         from ..\\..\ArduinoCore\include\libraries\ros_lib/ros.h:38,
                         from .././Sketch.cpp:11:
        ..\\..\ArduinoCore\include\libraries\ros_lib/rosserial_msgs/Log.h: In member function 'virtual int rosserial_msgs::Log::serialize(unsigned char*) const':
C:\Users\tsemwal\Documents\Atmel Studio\7.0\ros_hello\ros_hello\ArduinoCore\include\libraries\ros_lib\rosserial_msgs\Log.h(36,45): error: 'strlen' was not declared in this scope
               uint32_t length_msg = strlen(this->msg);
                                                     ^
C:\Users\tsemwal\Documents\Atmel Studio\7.0\ros_hello\ros_hello\ArduinoCore\include\libraries\ros_lib\rosserial_msgs\Log.h(39,55): error: 'memcpy' was not declared in this scope
               memcpy(outbuffer + offset, this->msg, length_msg);
                                                               ^
        In file included from ..\\..\ArduinoCore\include\libraries\ros_lib/ros/node_handle.h:43:0,
                         from ..\\..\ArduinoCore\include\libraries\ros_lib/ros.h:38,
                         from .././Sketch.cpp:11:
        ..\\..\ArduinoCore\include\libraries\ros_lib/rosserial_msgs/RequestParam.h: In member function 'virtual int rosserial_msgs::RequestParamRequest::serialize(unsigned char*) const':
C:\Users\tsemwal\Documents\Atmel Studio\7.0\ros_hello\ros_hello\ArduinoCore\include\libraries\ros_lib\rosserial_msgs\RequestParam.h(27,47): error: 'strlen' was not declared in this scope
               uint32_t length_name = strlen(this->name);
                                                       ^
C:\Users\tsemwal\Documents\Atmel Studio\7.0\ros_hello\ros_hello\ArduinoCore\include\libraries\ros_lib\rosserial_msgs\RequestParam.h(30,57): error: 'memcpy' was not declared in this scope
               memcpy(outbuffer + offset, this->name, length_name);
                                                                 ^
        ..\\..\ArduinoCore\include\libraries\ros_lib/rosserial_msgs/RequestParam.h: In member function 'virtual int rosserial_msgs::RequestParamResponse::serialize(unsigned char*) const':
C:\Users\tsemwal\Documents\Atmel Studio\7.0\ros_hello\ros_hello\ArduinoCore\include\libraries\ros_lib\rosserial_msgs\RequestParam.h(121,57): error: 'strlen' was not declared in this scope
               uint32_t length_stringsi = strlen(this->strings[i]);
                                                                 ^
C:\Users\tsemwal\Documents\Atmel Studio\7.0\ros_hello\ros_hello\ArduinoCore\include\libraries\ros_lib\rosserial_msgs\RequestParam.h(124,67): error: 'memcpy' was not declared in this scope
               memcpy(outbuffer + offset, this->strings[i], length_stringsi);
                                                                           ^
        ..\\..\ArduinoCore\include\libraries\ros_lib/rosserial_msgs/RequestParam.h: In member function 'virtual int rosserial_msgs::RequestParamResponse::deserialize(unsigned char*)':
C:\Users\tsemwal\Documents\Atmel Studio\7.0\ros_hello\ros_hello\ArduinoCore\include\libraries\ros_lib\rosserial_msgs\RequestParam.h(153,68): error: 'memcpy' was not declared in this scope
                 memcpy( &(this->ints[i]), &(this->st_ints), sizeof(int32_t));
                                                                            ^
C:\Users\tsemwal\Documents\Atmel Studio\7.0\ros_hello\ros_hello\ArduinoCore\include\libraries\ros_lib\rosserial_msgs\RequestParam.h(175,70): error: 'memcpy' was not declared in this scope
                 memcpy( &(this->floats[i]), &(this->st_floats), sizeof(float));
                                                                              ^
C:\Users\tsemwal\Documents\Atmel Studio\7.0\ros_hello\ros_hello\ArduinoCore\include\libraries\ros_lib\rosserial_msgs\RequestParam.h(195,72): error: 'memcpy' was not declared in this scope
                 memcpy( &(this->strings[i]), &(this->st_strings), sizeof(char*));
                                                                                ^
        In file included from ..\\..\ArduinoCore\include\libraries\ros_lib/ros.h:38:0,
                         from .././Sketch.cpp:11:
        ..\\..\ArduinoCore\include\libraries\ros_lib/ros/node_handle.h: In member function 'bool ros::NodeHandle_<Hardware, MAX_SUBSCRIBERS, MAX_PUBLISHERS, INPUT_SIZE, OUTPUT_SIZE>::getParam(const char*, char**, int, int)':
C:\Users\tsemwal\Documents\Atmel Studio\7.0\ros_hello\ros_hello\ArduinoCore\include\libraries\ros_lib\ros\node_handle.h(654,53): error: there are no arguments to 'strcpy' that depend on a template parameter, so a declaration of 'strcpy' must be available [-fpermissive]
                   strcpy(param[i], req_param_resp.strings[i]);
                                                             ^
C:\Users\tsemwal\Documents\Atmel Studio\7.0\ros_hello\ros_hello\ArduinoCore\include\libraries\ros_lib\ros\node_handle.h(654,53): info: (if you use '-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated)
        make: *** [Sketch.o] Error 1
    Done executing task "RunCompilerTask" -- FAILED.
Done building target "CoreBuild" in project "HelloWorld.cppproj" -- FAILED.
Done building project "HelloWorld.cppproj" -- FAILED.

Build FAILED.
========== Build: 0 succeeded or up-to-date, 2 failed, 0 skipped ==========
 

This topic has a solution.
Last Edited: Sat. Sep 14, 2019 - 09:46 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

When builds fail just solve the first error listed and 90% of the time you fix everything else. The first real error there is:

C:\Users\tsemwal\Documents\Atmel Studio\7.0\ros_hello\ros_hello\ArduinoCore\include\libraries\ros_lib\std_msgs\string.h(26,47): error: 'strlen' was not declared in this scope
               uint32_t length_data = strlen(this->data);
                                                       ^

that simply means someone forgot a:

#include <string.h>

BTW while the question is pretty generic I will move this thread from "Studio(AVR)" to "Studio(ARM)" forum.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Thanks @clawson. However, I checked the 

C:\Users\tsemwal\Documents\Atmel Studio\7.0\ros_hello\ros_hello\ArduinoCore\include\libraries\ros_lib\std_msgs\string.h

file and I can clearly see a #include <string.h>. As I said, it successfully compiles in Arduino IDE.

 

As can be seen, AS7 first try building ArduinoCore and there are errors in it too. I am definitely missing something here. Is AS7 is not able to cross link the file?? Has anybody tried bulding ROS-Serial project before??

 

I am sorry I missed the FULL build output in the last message: Please find it below:

*************************************************************************

------ Build started: Project: ArduinoCore, Configuration: Debug ARM ------
Build started.
Project "ArduinoCore.cppproj" (default targets):
Target "PreBuildEvent" skipped, due to false condition; ('$(PreBuildEvent)'!='') was evaluated as (''!='').
Target "CoreBuild" in file "C:\Program Files (x86)\Atmel\Studio\7.0\Vs\Compiler.targets" from project "C:\Users\tsemwal\Documents\Atmel Studio\7.0\ros_hello\ros_hello\ArduinoCore\ArduinoCore.cppproj" (target "Build" depends on it):
    Task "RunCompilerTask"
        Shell Utils Path C:\Program Files (x86)\Atmel\Studio\7.0\shellUtils
        C:\Program Files (x86)\Atmel\Studio\7.0\shellUtils\make.exe all --jobs 8 --output-sync 
        Building file: ../src/core/abi.cpp
        Invoking: ARM/GNU C Compiler : 6.3.1
        "C:\Program Files (x86)\Atmel\Studio\7.0\toolchain\arm\arm-gnu-toolchain\bin\arm-none-eabi-g++.exe" -mthumb -D__SAMD21G18A__ -DDEBUG -DF_CPU=48000000L -DARDUINO=10809 -DARDUINO_SAMD_ZERO -DARDUINO_ARCH_SAMD -DUSB_VID=0x2341 -DUSB_PID=0x804d -DUSB_PRODUCT="\"Arduino Zero\"" -DUSB_MANUFACTURER="\"Arduino LLC\"" -DUSBCON -DSAMD_SERIES  -I"C:\Program Files (x86)\Atmel\Studio\7.0\Packs\arm\cmsis\5.0.1\CMSIS\Include" -I"..\include\libraries\ros_lib" -I"..\include\libraries\ros_lib\actionlib" -I"..\include\libraries\ros_lib\actionlib_msgs" -I"..\include\libraries\ros_lib\actionlib_tutorials" -I"..\include\libraries\ros_lib\bond" -I"..\include\libraries\ros_lib\control_msgs" -I"..\include\libraries\ros_lib\diagnostic_msgs" -I"..\include\libraries\ros_lib\dynamic_reconfigure" -I"..\include\libraries\ros_lib\examples\BlinkM" -I"..\include\libraries\ros_lib\gazebo_msgs" -I"..\include\libraries\ros_lib\geometry_msgs" -I"..\include\libraries\ros_lib\laser_assembler" -I"..\include\libraries\ros_lib\map_msgs" -I"..\include\libraries\ros_lib\nav_msgs" -I"..\include\libraries\ros_lib\nodelet" -I"..\include\libraries\ros_lib\pcl_msgs" -I"..\include\libraries\ros_lib\polled_camera" -I"..\include\libraries\ros_lib\ros" -I"..\include\libraries\ros_lib\roscpp" -I"..\include\libraries\ros_lib\roscpp_tutorials" -I"..\include\libraries\ros_lib\rosgraph_msgs" -I"..\include\libraries\ros_lib\rospy_tutorials" -I"..\include\libraries\ros_lib\rosserial_arduino" -I"..\include\libraries\ros_lib\rosserial_msgs" -I"..\include\libraries\ros_lib\sensor_msgs" -I"..\include\libraries\ros_lib\shape_msgs" -I"..\include\libraries\ros_lib\smach_msgs" -I"..\include\libraries\ros_lib\std_msgs" -I"..\include\libraries\ros_lib\std_srvs" -I"..\include\libraries\ros_lib\stereo_msgs" -I"..\include\libraries\ros_lib\tf" -I"..\include\libraries\ros_lib\tf2_msgs" -I"..\include\libraries\ros_lib\theora_image_transport" -I"..\include\libraries\ros_lib\topic_tools" -I"..\include\libraries\ros_lib\trajectory_msgs" -I"..\include\libraries\ros_lib\turtlesim" -I"..\include\libraries\ros_lib\turtle_actionlib" -I"..\include\libraries\ros_lib\visualization_msgs" -I"..\include\core" -I"..\include\core\avr" -I"..\include\core\USB" -I"..\include\variants" -I"..\include\core\samd21" -I"..\include\core\samd21\include" -I"..\include\core\samd21\include\component" -I"..\include\core\samd21\include\instance" -I"..\include\core\samd21\include\pio"  -Os -fno-threadsafe-statics -fno-exceptions -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions -g3 -w -mcpu=cortex-m0plus -c -std=gnu++11 --param max-inline-insns-single=500 -nostdlib -MD -MP -MF "src/core/abi.d" -MT"src/core/abi.d" -MT"src/core/abi.o"   -o "src/core/abi.o" "../src/core/abi.cpp" 
        Finished building: ../src/core/abi.cpp
        Building file: ../src/core/avr/dtostrf.c
        Invoking: ARM/GNU C Compiler : 6.3.1
        "C:\Program Files (x86)\Atmel\Studio\7.0\toolchain\arm\arm-gnu-toolchain\bin\arm-none-eabi-gcc.exe"  -x c -mthumb -D__SAMD21G18A__ -DDEBUG -DF_CPU=48000000L -DARDUINO=10809 -DARDUINO_SAMD_ZERO -DARDUINO_ARCH_SAMD -DUSB_VID=0x2341 -DUSB_PID=0x804d -DUSB_PRODUCT="\"Arduino Zero\"" -DUSB_MANUFACTURER="\"Arduino LLC\"" -DUSBCON -DSAMD_SERIES  -I"C:\Program Files (x86)\Atmel\Studio\7.0\Packs\arm\cmsis\5.0.1\CMSIS\Include" -I"..\include\libraries\ros_lib" -I"..\include\libraries\ros_lib\actionlib" -I"..\include\libraries\ros_lib\actionlib_msgs" -I"..\include\libraries\ros_lib\actionlib_tutorials" -I"..\include\libraries\ros_lib\bond" -I"..\include\libraries\ros_lib\control_msgs" -I"..\include\libraries\ros_lib\diagnostic_msgs" -I"..\include\libraries\ros_lib\dynamic_reconfigure" -I"..\include\libraries\ros_lib\examples\BlinkM" -I"..\include\libraries\ros_lib\gazebo_msgs" -I"..\include\libraries\ros_lib\geometry_msgs" -I"..\include\libraries\ros_lib\laser_assembler" -I"..\include\libraries\ros_lib\map_msgs" -I"..\include\libraries\ros_lib\nav_msgs" -I"..\include\libraries\ros_lib\nodelet" -I"..\include\libraries\ros_lib\pcl_msgs" -I"..\include\libraries\ros_lib\polled_camera" -I"..\include\libraries\ros_lib\ros" -I"..\include\libraries\ros_lib\roscpp" -I"..\include\libraries\ros_lib\roscpp_tutorials" -I"..\include\libraries\ros_lib\rosgraph_msgs" -I"..\include\libraries\ros_lib\rospy_tutorials" -I"..\include\libraries\ros_lib\rosserial_arduino" -I"..\include\libraries\ros_lib\rosserial_msgs" -I"..\include\libraries\ros_lib\sensor_msgs" -I"..\include\libraries\ros_lib\shape_msgs" -I"..\include\libraries\ros_lib\smach_msgs" -I"..\include\libraries\ros_lib\std_msgs" -I"..\include\libraries\ros_lib\std_srvs" -I"..\include\libraries\ros_lib\stereo_msgs" -I"..\include\libraries\ros_lib\tf" -I"..\include\libraries\ros_lib\tf2_msgs" -I"..\include\libraries\ros_lib\theora_image_transport" -I"..\include\libraries\ros_lib\topic_tools" -I"..\include\libraries\ros_lib\trajectory_msgs" -I"..\include\libraries\ros_lib\turtlesim" -I"..\include\libraries\ros_lib\turtle_actionlib" -I"..\include\libraries\ros_lib\visualization_msgs" -I"..\include\core" -I"..\include\core\avr" -I"..\include\core\USB" -I"..\include\variants" -I"..\include\core\samd21" -I"..\include\core\samd21\include" -I"..\include\core\samd21\include\component" -I"..\include\core\samd21\include\instance" -I"..\include\core\samd21\include\pio"  -Os -fno-threadsafe-statics -fno-exceptions -ffunction-sections -fdata-sections -g3 -w -mcpu=cortex-m0plus -c -std=gnu11 --param max-inline-insns-single=500 -nostdlib -MD -MP -MF "src/core/avr/dtostrf.d" -MT"src/core/avr/dtostrf.d" -MT"src/core/avr/dtostrf.o"   -o "src/core/avr/dtostrf.o" "../src/core/avr/dtostrf.c" 
        Finished building: ../src/core/avr/dtostrf.c
        Building file: ../src/core/hooks.c
        Invoking: ARM/GNU C Compiler : 6.3.1
        "C:\Program Files (x86)\Atmel\Studio\7.0\toolchain\arm\arm-gnu-toolchain\bin\arm-none-eabi-gcc.exe"  -x c -mthumb -D__SAMD21G18A__ -DDEBUG -DF_CPU=48000000L -DARDUINO=10809 -DARDUINO_SAMD_ZERO -DARDUINO_ARCH_SAMD -DUSB_VID=0x2341 -DUSB_PID=0x804d -DUSB_PRODUCT="\"Arduino Zero\"" -DUSB_MANUFACTURER="\"Arduino LLC\"" -DUSBCON -DSAMD_SERIES  -I"C:\Program Files (x86)\Atmel\Studio\7.0\Packs\arm\cmsis\5.0.1\CMSIS\Include" -I"..\include\libraries\ros_lib" -I"..\include\libraries\ros_lib\actionlib" -I"..\include\libraries\ros_lib\actionlib_msgs" -I"..\include\libraries\ros_lib\actionlib_tutorials" -I"..\include\libraries\ros_lib\bond" -I"..\include\libraries\ros_lib\control_msgs" -I"..\include\libraries\ros_lib\diagnostic_msgs" -I"..\include\libraries\ros_lib\dynamic_reconfigure" -I"..\include\libraries\ros_lib\examples\BlinkM" -I"..\include\libraries\ros_lib\gazebo_msgs" -I"..\include\libraries\ros_lib\geometry_msgs" -I"..\include\libraries\ros_lib\laser_assembler" -I"..\include\libraries\ros_lib\map_msgs" -I"..\include\libraries\ros_lib\nav_msgs" -I"..\include\libraries\ros_lib\nodelet" -I"..\include\libraries\ros_lib\pcl_msgs" -I"..\include\libraries\ros_lib\polled_camera" -I"..\include\libraries\ros_lib\ros" -I"..\include\libraries\ros_lib\roscpp" -I"..\include\libraries\ros_lib\roscpp_tutorials" -I"..\include\libraries\ros_lib\rosgraph_msgs" -I"..\include\libraries\ros_lib\rospy_tutorials" -I"..\include\libraries\ros_lib\rosserial_arduino" -I"..\include\libraries\ros_lib\rosserial_msgs" -I"..\include\libraries\ros_lib\sensor_msgs" -I"..\include\libraries\ros_lib\shape_msgs" -I"..\include\libraries\ros_lib\smach_msgs" -I"..\include\libraries\ros_lib\std_msgs" -I"..\include\libraries\ros_lib\std_srvs" -I"..\include\libraries\ros_lib\stereo_msgs" -I"..\include\libraries\ros_lib\tf" -I"..\include\libraries\ros_lib\tf2_msgs" -I"..\include\libraries\ros_lib\theora_image_transport" -I"..\include\libraries\ros_lib\topic_tools" -I"..\include\libraries\ros_lib\trajectory_msgs" -I"..\include\libraries\ros_lib\turtlesim" -I"..\include\libraries\ros_lib\turtle_actionlib" -I"..\include\libraries\ros_lib\visualization_msgs" -I"..\include\core" -I"..\include\core\avr" -I"..\include\core\USB" -I"..\include\variants" -I"..\include\core\samd21" -I"..\include\core\samd21\include" -I"..\include\core\samd21\include\component" -I"..\include\core\samd21\include\instance" -I"..\include\core\samd21\include\pio"  -Os -fno-threadsafe-statics -fno-exceptions -ffunction-sections -fdata-sections -g3 -w -mcpu=cortex-m0plus -c -std=gnu11 --param max-inline-insns-single=500 -nostdlib -MD -MP -MF "src/core/hooks.d" -MT"src/core/hooks.d" -MT"src/core/hooks.o"   -o "src/core/hooks.o" "../src/core/hooks.c" 
        Finished building: ../src/core/hooks.c
        Building file: ../src/core/itoa.c
        Invoking: ARM/GNU C Compiler : 6.3.1
        In file included from ..\include\libraries\ros_lib\std_msgs/string.h:7:0,
                         from ../src/core/itoa.c:21:
C:\Users\tsemwal\Documents\Atmel Studio\7.0\ros_hello\ros_hello\ArduinoCore\include\libraries\ros_lib\ros\msg.h(41,1): error: unknown type name 'namespace'
         namespace ros
         ^~~~~~~~~
C:\Users\tsemwal\Documents\Atmel Studio\7.0\ros_hello\ros_hello\ArduinoCore\include\libraries\ros_lib\ros\msg.h(42,1): error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
         {
         ^
        In file included from ../src/core/itoa.c:21:0:
C:\Users\tsemwal\Documents\Atmel Studio\7.0\ros_hello\ros_hello\ArduinoCore\include\libraries\ros_lib\std_msgs\string.h(9,1): error: unknown type name 'namespace'
         namespace std_msgs
         ^~~~~~~~~
C:\Users\tsemwal\Documents\Atmel Studio\7.0\ros_hello\ros_hello\ArduinoCore\include\libraries\ros_lib\std_msgs\string.h(10,1): error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
         {
         ^
        make: *** [src/core/itoa.o] Error 1
        "C:\Program Files (x86)\Atmel\Studio\7.0\toolchain\arm\arm-gnu-toolchain\bin\arm-none-eabi-gcc.exe"  -x c -mthumb -D__SAMD21G18A__ -DDEBUG -DF_CPU=48000000L -DARDUINO=10809 -DARDUINO_SAMD_ZERO -DARDUINO_ARCH_SAMD -DUSB_VID=0x2341 -DUSB_PID=0x804d -DUSB_PRODUCT="\"Arduino Zero\"" -DUSB_MANUFACTURER="\"Arduino LLC\"" -DUSBCON -DSAMD_SERIES  -I"C:\Program Files (x86)\Atmel\Studio\7.0\Packs\arm\cmsis\5.0.1\CMSIS\Include" -I"..\include\libraries\ros_lib" -I"..\include\libraries\ros_lib\actionlib" -I"..\include\libraries\ros_lib\actionlib_msgs" -I"..\include\libraries\ros_lib\actionlib_tutorials" -I"..\include\libraries\ros_lib\bond" -I"..\include\libraries\ros_lib\control_msgs" -I"..\include\libraries\ros_lib\diagnostic_msgs" -I"..\include\libraries\ros_lib\dynamic_reconfigure" -I"..\include\libraries\ros_lib\examples\BlinkM" -I"..\include\libraries\ros_lib\gazebo_msgs" -I"..\include\libraries\ros_lib\geometry_msgs" -I"..\include\libraries\ros_lib\laser_assembler" -I"..\include\libraries\ros_lib\map_msgs" -I"..\include\libraries\ros_lib\nav_msgs" -I"..\include\libraries\ros_lib\nodelet" -I"..\include\libraries\ros_lib\pcl_msgs" -I"..\include\libraries\ros_lib\polled_camera" -I"..\include\libraries\ros_lib\ros" -I"..\include\libraries\ros_lib\roscpp" -I"..\include\libraries\ros_lib\roscpp_tutorials" -I"..\include\libraries\ros_lib\rosgraph_msgs" -I"..\include\libraries\ros_lib\rospy_tutorials" -I"..\include\libraries\ros_lib\rosserial_arduino" -I"..\include\libraries\ros_lib\rosserial_msgs" -I"..\include\libraries\ros_lib\sensor_msgs" -I"..\include\libraries\ros_lib\shape_msgs" -I"..\include\libraries\ros_lib\smach_msgs" -I"..\include\libraries\ros_lib\std_msgs" -I"..\include\libraries\ros_lib\std_srvs" -I"..\include\libraries\ros_lib\stereo_msgs" -I"..\include\libraries\ros_lib\tf" -I"..\include\libraries\ros_lib\tf2_msgs" -I"..\include\libraries\ros_lib\theora_image_transport" -I"..\include\libraries\ros_lib\topic_tools" -I"..\include\libraries\ros_lib\trajectory_msgs" -I"..\include\libraries\ros_lib\turtlesim" -I"..\include\libraries\ros_lib\turtle_actionlib" -I"..\include\libraries\ros_lib\visualization_msgs" -I"..\include\core" -I"..\include\core\avr" -I"..\include\core\USB" -I"..\include\variants" -I"..\include\core\samd21" -I"..\include\core\samd21\include" -I"..\include\core\samd21\include\component" -I"..\include\core\samd21\include\instance" -I"..\include\core\samd21\include\pio"  -Os -fno-threadsafe-statics -fno-exceptions -ffunction-sections -fdata-sections -g3 -w -mcpu=cortex-m0plus -c -std=gnu11 --param max-inline-insns-single=500 -nostdlib -MD -MP -MF "src/core/itoa.d" -MT"src/core/itoa.d" -MT"src/core/itoa.o"   -o "src/core/itoa.o" "../src/core/itoa.c" 
C:\Users\tsemwal\Documents\Atmel Studio\7.0\ros_hello\ros_hello\ArduinoCore\Debug\Makefile(342,1): error: recipe for target 'src/core/itoa.o' failed
        make: *** Waiting for unfinished jobs....
        Building file: ../src/core/delay.c
        Invoking: ARM/GNU C Compiler : 6.3.1
        In file included from ..\include\libraries\ros_lib\std_msgs/string.h:7:0,
                         from ..\include\core/Arduino.h:26,
                         from ../src/core/delay.c:20:
C:\Users\tsemwal\Documents\Atmel Studio\7.0\ros_hello\ros_hello\ArduinoCore\include\libraries\ros_lib\ros\msg.h(41,1): error: unknown type name 'namespace'
         namespace ros
         ^~~~~~~~~
C:\Users\tsemwal\Documents\Atmel Studio\7.0\ros_hello\ros_hello\ArduinoCore\include\libraries\ros_lib\ros\msg.h(42,1): error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
         {
         ^
        In file included from ..\include\core/Arduino.h:26:0,
                         from ../src/core/delay.c:20:
C:\Users\tsemwal\Documents\Atmel Studio\7.0\ros_hello\ros_hello\ArduinoCore\include\libraries\ros_lib\std_msgs\string.h(9,1): error: unknown type name 'namespace'
         namespace std_msgs
         ^~~~~~~~~
C:\Users\tsemwal\Documents\Atmel Studio\7.0\ros_hello\ros_hello\ArduinoCore\include\libraries\ros_lib\std_msgs\string.h(10,1): error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
         {
         ^
        make: *** [src/core/delay.o] Error 1
        "C:\Program Files (x86)\Atmel\Studio\7.0\toolchain\arm\arm-gnu-toolchain\bin\arm-none-eabi-gcc.exe"  -x c -mthumb -D__SAMD21G18A__ -DDEBUG -DF_CPU=48000000L -DARDUINO=10809 -DARDUINO_SAMD_ZERO -DARDUINO_ARCH_SAMD -DUSB_VID=0x2341 -DUSB_PID=0x804d -DUSB_PRODUCT="\"Arduino Zero\"" -DUSB_MANUFACTURER="\"Arduino LLC\"" -DUSBCON -DSAMD_SERIES  -I"C:\Program Files (x86)\Atmel\Studio\7.0\Packs\arm\cmsis\5.0.1\CMSIS\Include" -I"..\include\libraries\ros_lib" -I"..\include\libraries\ros_lib\actionlib" -I"..\include\libraries\ros_lib\actionlib_msgs" -I"..\include\libraries\ros_lib\actionlib_tutorials" -I"..\include\libraries\ros_lib\bond" -I"..\include\libraries\ros_lib\control_msgs" -I"..\include\libraries\ros_lib\diagnostic_msgs" -I"..\include\libraries\ros_lib\dynamic_reconfigure" -I"..\include\libraries\ros_lib\examples\BlinkM" -I"..\include\libraries\ros_lib\gazebo_msgs" -I"..\include\libraries\ros_lib\geometry_msgs" -I"..\include\libraries\ros_lib\laser_assembler" -I"..\include\libraries\ros_lib\map_msgs" -I"..\include\libraries\ros_lib\nav_msgs" -I"..\include\libraries\ros_lib\nodelet" -I"..\include\libraries\ros_lib\pcl_msgs" -I"..\include\libraries\ros_lib\polled_camera" -I"..\include\libraries\ros_lib\ros" -I"..\include\libraries\ros_lib\roscpp" -I"..\include\libraries\ros_lib\roscpp_tutorials" -I"..\include\libraries\ros_lib\rosgraph_msgs" -I"..\include\libraries\ros_lib\rospy_tutorials" -I"..\include\libraries\ros_lib\rosserial_arduino" -I"..\include\libraries\ros_lib\rosserial_msgs" -I"..\include\libraries\ros_lib\sensor_msgs" -I"..\include\libraries\ros_lib\shape_msgs" -I"..\include\libraries\ros_lib\smach_msgs" -I"..\include\libraries\ros_lib\std_msgs" -I"..\include\libraries\ros_lib\std_srvs" -I"..\include\libraries\ros_lib\stereo_msgs" -I"..\include\libraries\ros_lib\tf" -I"..\include\libraries\ros_lib\tf2_msgs" -I"..\include\libraries\ros_lib\theora_image_transport" -I"..\include\libraries\ros_lib\topic_tools" -I"..\include\libraries\ros_lib\trajectory_msgs" -I"..\include\libraries\ros_lib\turtlesim" -I"..\include\libraries\ros_lib\turtle_actionlib" -I"..\include\libraries\ros_lib\visualization_msgs" -I"..\include\core" -I"..\include\core\avr" -I"..\include\core\USB" -I"..\include\variants" -I"..\include\core\samd21" -I"..\include\core\samd21\include" -I"..\include\core\samd21\include\component" -I"..\include\core\samd21\include\instance" -I"..\include\core\samd21\include\pio"  -Os -fno-threadsafe-statics -fno-exceptions -ffunction-sections -fdata-sections -g3 -w -mcpu=cortex-m0plus -c -std=gnu11 --param max-inline-insns-single=500 -nostdlib -MD -MP -MF "src/core/delay.d" -MT"src/core/delay.d" -MT"src/core/delay.o"   -o "src/core/delay.o" "../src/core/delay.c" 
C:\Users\tsemwal\Documents\Atmel Studio\7.0\ros_hello\ros_hello\ArduinoCore\Debug\Makefile(321,1): error: recipe for target 'src/core/delay.o' failed
        Building file: ../src/core/PreprocessingAssembly/pulse_asm.S
        Invoking: ARM/GNU Preprocessing Assembler : 6.3.1
        "C:\Program Files (x86)\Atmel\Studio\7.0\toolchain\arm\arm-gnu-toolchain\bin\arm-none-eabi-gcc.exe" -mthumb -x assembler-with-cpp -c -mcpu=cortex-m0plus -I "C:\Program Files (x86)\Atmel\Studio\7.0\Packs\arm\cmsis\5.0.1\CMSIS\Include" -I "C:\Program Files (x86)\Atmel\Studio\7.0\Packs\atmel\SAMD21_DFP\1.3.304\samd21a\include"  -MD -MP -MF "src/core/PreprocessingAssembly/pulse_asm.d" -MT"src/core/PreprocessingAssembly/pulse_asm.d" -MT"src/core/PreprocessingAssembly/pulse_asm.o" -D__SAMD21G18A__ -Wa,-g   -o "src/core/PreprocessingAssembly/pulse_asm.o" "../src/core/PreprocessingAssembly/pulse_asm.S" 
        Finished building: ../src/core/PreprocessingAssembly/pulse_asm.S
        Building file: ../src/core/IPAddress.cpp
        Invoking: ARM/GNU C Compiler : 6.3.1
        In file included from ..\include\core/Arduino.h:26:0,
                         from ../src/core/IPAddress.cpp:20:
        ..\include\libraries\ros_lib\std_msgs/string.h: In member function 'virtual int std_msgs::String::serialize(unsigned char*) const':
C:\Users\tsemwal\Documents\Atmel Studio\7.0\ros_hello\ros_hello\ArduinoCore\include\libraries\ros_lib\std_msgs\string.h(26,47): error: 'strlen' was not declared in this scope
               uint32_t length_data = strlen(this->data);
                                                       ^
C:\Users\tsemwal\Documents\Atmel Studio\7.0\ros_hello\ros_hello\ArduinoCore\include\libraries\ros_lib\std_msgs\string.h(29,57): error: 'memcpy' was not declared in this scope
               memcpy(outbuffer + offset, this->data, length_data);
                                                                 ^
        In file included from ..\include\core/Stream.h:26:0,
                         from ..\include\core/HardwareSerial.h:24,
                         from ..\include\core/Arduino.h:78,
                         from ../src/core/IPAddress.cpp:20:
        ..\include\core/Print.h: In member function 'size_t Print::write(const char*)':
        "C:\Program Files (x86)\Atmel\Studio\7.0\toolchain\arm\arm-gnu-toolchain\bin\arm-none-eabi-g++.exe" -mthumb -D__SAMD21G18A__ -DDEBUG -DF_CPU=48000000L -DARDUINO=10809 -DARDUINO_SAMD_ZERO -DARDUINO_ARCH_SAMD -DUSB_VID=0x2341 -DUSB_PID=0x804d -DUSB_PRODUCT="\"Arduino Zero\"" -DUSB_MANUFACTURER="\"Arduino LLC\"" -DUSBCON -DSAMD_SERIES  -I"C:\Program Files (x86)\Atmel\Studio\7.0\Packs\arm\cmsis\5.0.1\CMSIS\Include" -I"..\include\libraries\ros_lib" -I"..\include\libraries\ros_lib\actionlib" -I"..\include\libraries\ros_lib\actionlib_msgs" -I"..\include\libraries\ros_lib\actionlib_tutorials" -I"..\include\libraries\ros_lib\bond" -I"..\include\libraries\ros_lib\control_msgs" -I"..\include\libraries\ros_lib\diagnostic_msgs" -I"..\include\libraries\ros_lib\dynamic_reconfigure" -I"..\include\libraries\ros_lib\examples\BlinkM" -I"..\include\libraries\ros_lib\gazebo_msgs" -I"..\include\libraries\ros_lib\geometry_msgs" -I"..\include\libraries\ros_lib\laser_assembler" -I"..\include\libraries\ros_lib\map_msgs" -I"..\include\libraries\ros_lib\nav_msgs" -I"..\include\libraries\ros_lib\nodelet" -I"..\include\libraries\ros_lib\pcl_msgs" -I"..\include\libraries\ros_lib\polled_camera" -I"..\include\libraries\ros_lib\ros" -I"..\include\libraries\ros_lib\roscpp" -I"..\include\libraries\ros_lib\roscpp_tutorials" -I"..\include\libraries\ros_lib\rosgraph_msgs" -I"..\include\libraries\ros_lib\rospy_tutorials" -I"..\include\libraries\ros_lib\rosserial_arduino" -I"..\include\libraries\ros_lib\rosserial_msgs" -I"..\include\libraries\ros_lib\sensor_msgs" -I"..\include\libraries\ros_lib\shape_msgs" -I"..\include\libraries\ros_lib\smach_msgs" -I"..\include\libraries\ros_lib\std_msgs" -I"..\include\libraries\ros_lib\std_srvs" -I"..\include\libraries\ros_lib\stereo_msgs" -I"..\include\libraries\ros_lib\tf" -I"..\include\libraries\ros_lib\tf2_msgs" -I"..\include\libraries\ros_lib\theora_image_transport" -I"..\include\libraries\ros_lib\topic_tools" -I"..\include\libraries\ros_lib\trajectory_msgs" -I"..\include\libraries\ros_lib\turtlesim" -I"..\include\libraries\ros_lib\turtle_actionlib" -I"..\include\libraries\ros_lib\visualization_msgs" -I"..\include\core" -I"..\include\core\avr" -I"..\include\core\USB" -I"..\include\variants" -I"..\include\core\samd21" -I"..\include\core\samd21\include" -I"..\include\core\samd21\include\component" -I"..\include\core\samd21\include\instance" -I"..\include\core\samd21\include\pio"  -Os -fno-threadsafe-statics -fno-exceptions -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions -g3 -w -mcpu=cortex-m0plus -c -std=gnu++11 --param max-inline-insns-single=500 -nostdlib -MD -MP -MF "src/core/IPAddress.d" -MT"src/core/IPAddress.d" -MT"src/core/IPAddress.o"   -o "src/core/IPAddress.o" "../src/core/IPAddress.cpp" 
C:\Users\tsemwal\Documents\Atmel Studio\7.0\ros_hello\ros_hello\ArduinoCore\Debug\Makefile(335,1): error: recipe for target 'src/core/IPAddress.o' failed
C:\Users\tsemwal\Documents\Atmel Studio\7.0\ros_hello\ros_hello\ArduinoCore\include\core\Print.h(53,52): error: 'strlen' was not declared in this scope
               return write((const uint8_t *)str, strlen(str));
                                                            ^
        ../src/core/IPAddress.cpp: In constructor 'IPAddress::IPAddress(const uint8_t*)':
C:\Users\tsemwal\Documents\Atmel Studio\7.0\ros_hello\ros_hello\ArduinoCore\src\core\IPAddress.cpp(43,59): error: 'memcpy' was not declared in this scope
             memcpy(_address.bytes, address, sizeof(_address.bytes));
                                                                   ^
        ../src/core/IPAddress.cpp: In member function 'IPAddress& IPAddress::operator=(const uint8_t*)':
C:\Users\tsemwal\Documents\Atmel Studio\7.0\ros_hello\ros_hello\ArduinoCore\src\core\IPAddress.cpp(90,59): error: 'memcpy' was not declared in this scope
             memcpy(_address.bytes, address, sizeof(_address.bytes));
                                                                   ^
        ../src/core/IPAddress.cpp: In member function 'bool IPAddress::operator==(const uint8_t*) const':
C:\Users\tsemwal\Documents\Atmel Studio\7.0\ros_hello\ros_hello\ArduinoCore\src\core\IPAddress.cpp(102,63): error: 'memcmp' was not declared in this scope
             return memcmp(addr, _address.bytes, sizeof(_address.bytes)) == 0;
                                                                       ^
        make: *** [src/core/IPAddress.o] Error 1
        Building file: ../src/core/cortex_handlers.c
        Invoking: ARM/GNU C Compiler : 6.3.1
        "C:\Program Files (x86)\Atmel\Studio\7.0\toolchain\arm\arm-gnu-toolchain\bin\arm-none-eabi-gcc.exe"  -x c -mthumb -D__SAMD21G18A__ -DDEBUG -DF_CPU=48000000L -DARDUINO=10809 -DARDUINO_SAMD_ZERO -DARDUINO_ARCH_SAMD -DUSB_VID=0x2341 -DUSB_PID=0x804d -DUSB_PRODUCT="\"Arduino Zero\"" -DUSB_MANUFACTURER="\"Arduino LLC\"" -DUSBCON -DSAMD_SERIES  -I"C:\Program Files (x86)\Atmel\Studio\7.0\Packs\arm\cmsis\5.0.1\CMSIS\Include" -I"..\include\libraries\ros_lib" -I"..\include\libraries\ros_lib\actionlib" -I"..\include\libraries\ros_lib\actionlib_msgs" -I"..\include\libraries\ros_lib\actionlib_tutorials" -I"..\include\libraries\ros_lib\bond" -I"..\include\libraries\ros_lib\control_msgs" -I"..\include\libraries\ros_lib\diagnostic_msgs" -I"..\include\libraries\ros_lib\dynamic_reconfigure" -I"..\include\libraries\ros_lib\examples\BlinkM" -I"..\include\libraries\ros_lib\gazebo_msgs" -I"..\include\libraries\ros_lib\geometry_msgs" -I"..\include\libraries\ros_lib\laser_assembler" -I"..\include\libraries\ros_lib\map_msgs" -I"..\include\libraries\ros_lib\nav_msgs" -I"..\include\libraries\ros_lib\nodelet" -I"..\include\libraries\ros_lib\pcl_msgs" -I"..\include\libraries\ros_lib\polled_camera" -I"..\include\libraries\ros_lib\ros" -I"..\include\libraries\ros_lib\roscpp" -I"..\include\libraries\ros_lib\roscpp_tutorials" -I"..\include\libraries\ros_lib\rosgraph_msgs" -I"..\include\libraries\ros_lib\rospy_tutorials" -I"..\include\libraries\ros_lib\rosserial_arduino" -I"..\include\libraries\ros_lib\rosserial_msgs" -I"..\include\libraries\ros_lib\sensor_msgs" -I"..\include\libraries\ros_lib\shape_msgs" -I"..\include\libraries\ros_lib\smach_msgs" -I"..\include\libraries\ros_lib\std_msgs" -I"..\include\libraries\ros_lib\std_srvs" -I"..\include\libraries\ros_lib\stereo_msgs" -I"..\include\libraries\ros_lib\tf" -I"..\include\libraries\ros_lib\tf2_msgs" -I"..\include\libraries\ros_lib\theora_image_transport" -I"..\include\libraries\ros_lib\topic_tools" -I"..\include\libraries\ros_lib\trajectory_msgs" -I"..\include\libraries\ros_lib\turtlesim" -I"..\include\libraries\ros_lib\turtle_actionlib" -I"..\include\libraries\ros_lib\visualization_msgs" -I"..\include\core" -I"..\include\core\avr" -I"..\include\core\USB" -I"..\include\variants" -I"..\include\core\samd21" -I"..\include\core\samd21\include" -I"..\include\core\samd21\include\component" -I"..\include\core\samd21\include\instance" -I"..\include\core\samd21\include\pio"  -Os -fno-threadsafe-statics -fno-exceptions -ffunction-sections -fdata-sections -g3 -w -mcpu=cortex-m0plus -c -std=gnu11 --param max-inline-insns-single=500 -nostdlib -MD -MP -MF "src/core/cortex_handlers.d" -MT"src/core/cortex_handlers.d" -MT"src/core/cortex_handlers.o"   -o "src/core/cortex_handlers.o" "../src/core/cortex_handlers.c" 
        Finished building: ../src/core/cortex_handlers.c
        Building file: ../src/core/main.cpp
        Invoking: ARM/GNU C Compiler : 6.3.1
        In file included from ..\include\core/Arduino.h:26:0,
                         from ../src/core/main.cpp:20:
        ..\include\libraries\ros_lib\std_msgs/string.h: In member function 'virtual int std_msgs::String::serialize(unsigned char*) const':
C:\Users\tsemwal\Documents\Atmel Studio\7.0\ros_hello\ros_hello\ArduinoCore\include\libraries\ros_lib\std_msgs\string.h(26,47): error: 'strlen' was not declared in this scope
               uint32_t length_data = strlen(this->data);
                                                       ^
C:\Users\tsemwal\Documents\Atmel Studio\7.0\ros_hello\ros_hello\ArduinoCore\include\libraries\ros_lib\std_msgs\string.h(29,57): error: 'memcpy' was not declared in this scope
               memcpy(outbuffer + offset, this->data, length_data);
                                                                 ^
        In file included from ..\include\core/Stream.h:26:0,
                         from ..\include\core/HardwareSerial.h:24,
                         from ..\include\core/Arduino.h:78,
                         from ../src/core/main.cpp:20:
        ..\include\core/Print.h: In member function 'size_t Print::write(const char*)':
C:\Users\tsemwal\Documents\Atmel Studio\7.0\ros_hello\ros_hello\ArduinoCore\include\core\Print.h(53,52): error: 'strlen' was not declared in this scope
               return write((const uint8_t *)str, strlen(str));
                                                            ^
        make: *** [src/core/main.o] Error 1
        "C:\Program Files (x86)\Atmel\Studio\7.0\toolchain\arm\arm-gnu-toolchain\bin\arm-none-eabi-g++.exe" -mthumb -D__SAMD21G18A__ -DDEBUG -DF_CPU=48000000L -DARDUINO=10809 -DARDUINO_SAMD_ZERO -DARDUINO_ARCH_SAMD -DUSB_VID=0x2341 -DUSB_PID=0x804d -DUSB_PRODUCT="\"Arduino Zero\"" -DUSB_MANUFACTURER="\"Arduino LLC\"" -DUSBCON -DSAMD_SERIES  -I"C:\Program Files (x86)\Atmel\Studio\7.0\Packs\arm\cmsis\5.0.1\CMSIS\Include" -I"..\include\libraries\ros_lib" -I"..\include\libraries\ros_lib\actionlib" -I"..\include\libraries\ros_lib\actionlib_msgs" -I"..\include\libraries\ros_lib\actionlib_tutorials" -I"..\include\libraries\ros_lib\bond" -I"..\include\libraries\ros_lib\control_msgs" -I"..\include\libraries\ros_lib\diagnostic_msgs" -I"..\include\libraries\ros_lib\dynamic_reconfigure" -I"..\include\libraries\ros_lib\examples\BlinkM" -I"..\include\libraries\ros_lib\gazebo_msgs" -I"..\include\libraries\ros_lib\geometry_msgs" -I"..\include\libraries\ros_lib\laser_assembler" -I"..\include\libraries\ros_lib\map_msgs" -I"..\include\libraries\ros_lib\nav_msgs" -I"..\include\libraries\ros_lib\nodelet" -I"..\include\libraries\ros_lib\pcl_msgs" -I"..\include\libraries\ros_lib\polled_camera" -I"..\include\libraries\ros_lib\ros" -I"..\include\libraries\ros_lib\roscpp" -I"..\include\libraries\ros_lib\roscpp_tutorials" -I"..\include\libraries\ros_lib\rosgraph_msgs" -I"..\include\libraries\ros_lib\rospy_tutorials" -I"..\include\libraries\ros_lib\rosserial_arduino" -I"..\include\libraries\ros_lib\rosserial_msgs" -I"..\include\libraries\ros_lib\sensor_msgs" -I"..\include\libraries\ros_lib\shape_msgs" -I"..\include\libraries\ros_lib\smach_msgs" -I"..\include\libraries\ros_lib\std_msgs" -I"..\include\libraries\ros_lib\std_srvs" -I"..\include\libraries\ros_lib\stereo_msgs" -I"..\include\libraries\ros_lib\tf" -I"..\include\libraries\ros_lib\tf2_msgs" -I"..\include\libraries\ros_lib\theora_image_transport" -I"..\include\libraries\ros_lib\topic_tools" -I"..\include\libraries\ros_lib\trajectory_msgs" -I"..\include\libraries\ros_lib\turtlesim" -I"..\include\libraries\ros_lib\turtle_actionlib" -I"..\include\libraries\ros_lib\visualization_msgs" -I"..\include\core" -I"..\include\core\avr" -I"..\include\core\USB" -I"..\include\variants" -I"..\include\core\samd21" -I"..\include\core\samd21\include" -I"..\include\core\samd21\include\component" -I"..\include\core\samd21\include\instance" -I"..\include\core\samd21\include\pio"  -Os -fno-threadsafe-statics -fno-exceptions -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions -g3 -w -mcpu=cortex-m0plus -c -std=gnu++11 --param max-inline-insns-single=500 -nostdlib -MD -MP -MF "src/core/main.d" -MT"src/core/main.d" -MT"src/core/main.o"   -o "src/core/main.o" "../src/core/main.cpp" 
C:\Users\tsemwal\Documents\Atmel Studio\7.0\ros_hello\ros_hello\ArduinoCore\Debug\Makefile(349,1): error: recipe for target 'src/core/main.o' failed
        Building file: ../src/core/new.cpp
        Invoking: ARM/GNU C Compiler : 6.3.1
        "C:\Program Files (x86)\Atmel\Studio\7.0\toolchain\arm\arm-gnu-toolchain\bin\arm-none-eabi-g++.exe" -mthumb -D__SAMD21G18A__ -DDEBUG -DF_CPU=48000000L -DARDUINO=10809 -DARDUINO_SAMD_ZERO -DARDUINO_ARCH_SAMD -DUSB_VID=0x2341 -DUSB_PID=0x804d -DUSB_PRODUCT="\"Arduino Zero\"" -DUSB_MANUFACTURER="\"Arduino LLC\"" -DUSBCON -DSAMD_SERIES  -I"C:\Program Files (x86)\Atmel\Studio\7.0\Packs\arm\cmsis\5.0.1\CMSIS\Include" -I"..\include\libraries\ros_lib" -I"..\include\libraries\ros_lib\actionlib" -I"..\include\libraries\ros_lib\actionlib_msgs" -I"..\include\libraries\ros_lib\actionlib_tutorials" -I"..\include\libraries\ros_lib\bond" -I"..\include\libraries\ros_lib\control_msgs" -I"..\include\libraries\ros_lib\diagnostic_msgs" -I"..\include\libraries\ros_lib\dynamic_reconfigure" -I"..\include\libraries\ros_lib\examples\BlinkM" -I"..\include\libraries\ros_lib\gazebo_msgs" -I"..\include\libraries\ros_lib\geometry_msgs" -I"..\include\libraries\ros_lib\laser_assembler" -I"..\include\libraries\ros_lib\map_msgs" -I"..\include\libraries\ros_lib\nav_msgs" -I"..\include\libraries\ros_lib\nodelet" -I"..\include\libraries\ros_lib\pcl_msgs" -I"..\include\libraries\ros_lib\polled_camera" -I"..\include\libraries\ros_lib\ros" -I"..\include\libraries\ros_lib\roscpp" -I"..\include\libraries\ros_lib\roscpp_tutorials" -I"..\include\libraries\ros_lib\rosgraph_msgs" -I"..\include\libraries\ros_lib\rospy_tutorials" -I"..\include\libraries\ros_lib\rosserial_arduino" -I"..\include\libraries\ros_lib\rosserial_msgs" -I"..\include\libraries\ros_lib\sensor_msgs" -I"..\include\libraries\ros_lib\shape_msgs" -I"..\include\libraries\ros_lib\smach_msgs" -I"..\include\libraries\ros_lib\std_msgs" -I"..\include\libraries\ros_lib\std_srvs" -I"..\include\libraries\ros_lib\stereo_msgs" -I"..\include\libraries\ros_lib\tf" -I"..\include\libraries\ros_lib\tf2_msgs" -I"..\include\libraries\ros_lib\theora_image_transport" -I"..\include\libraries\ros_lib\topic_tools" -I"..\include\libraries\ros_lib\trajectory_msgs" -I"..\include\libraries\ros_lib\turtlesim" -I"..\include\libraries\ros_lib\turtle_actionlib" -I"..\include\libraries\ros_lib\visualization_msgs" -I"..\include\core" -I"..\include\core\avr" -I"..\include\core\USB" -I"..\include\variants" -I"..\include\core\samd21" -I"..\include\core\samd21\include" -I"..\include\core\samd21\include\component" -I"..\include\core\samd21\include\instance" -I"..\include\core\samd21\include\pio"  -Os -fno-threadsafe-statics -fno-exceptions -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions -g3 -w -mcpu=cortex-m0plus -c -std=gnu++11 --param max-inline-insns-single=500 -nostdlib -MD -MP -MF "src/core/new.d" -MT"src/core/new.d" -MT"src/core/new.o"   -o "src/core/new.o" "../src/core/new.cpp" 
        Finished building: ../src/core/new.cpp
        Building file: ../src/core/Print.cpp
        Invoking: ARM/GNU C Compiler : 6.3.1
        In file included from ..\include\core/Arduino.h:26:0,
                         from ../src/core/Print.cpp:20:
        ..\include\libraries\ros_lib\std_msgs/string.h: In member function 'virtual int std_msgs::String::serialize(unsigned char*) const':
C:\Users\tsemwal\Documents\Atmel Studio\7.0\ros_hello\ros_hello\ArduinoCore\include\libraries\ros_lib\std_msgs\string.h(26,47): error: 'strlen' was not declared in this scope
               uint32_t length_data = strlen(this->data);
                                                       ^
C:\Users\tsemwal\Documents\Atmel Studio\7.0\ros_hello\ros_hello\ArduinoCore\include\libraries\ros_lib\std_msgs\string.h(29,57): error: 'memcpy' was not declared in this scope
               memcpy(outbuffer + offset, this->data, length_data);
                                                                 ^
        "C:\Program Files (x86)\Atmel\Studio\7.0\toolchain\arm\arm-gnu-toolchain\bin\arm-none-eabi-g++.exe" -mthumb -D__SAMD21G18A__ -DDEBUG -DF_CPU=48000000L -DARDUINO=10809 -DARDUINO_SAMD_ZERO -DARDUINO_ARCH_SAMD -DUSB_VID=0x2341 -DUSB_PID=0x804d -DUSB_PRODUCT="\"Arduino Zero\"" -DUSB_MANUFACTURER="\"Arduino LLC\"" -DUSBCON -DSAMD_SERIES  -I"C:\Program Files (x86)\Atmel\Studio\7.0\Packs\arm\cmsis\5.0.1\CMSIS\Include" -I"..\include\libraries\ros_lib" -I"..\include\libraries\ros_lib\actionlib" -I"..\include\libraries\ros_lib\actionlib_msgs" -I"..\include\libraries\ros_lib\actionlib_tutorials" -I"..\include\libraries\ros_lib\bond" -I"..\include\libraries\ros_lib\control_msgs" -I"..\include\libraries\ros_lib\diagnostic_msgs" -I"..\include\libraries\ros_lib\dynamic_reconfigure" -I"..\include\libraries\ros_lib\examples\BlinkM" -I"..\include\libraries\ros_lib\gazebo_msgs" -I"..\include\libraries\ros_lib\geometry_msgs" -I"..\include\libraries\ros_lib\laser_assembler" -I"..\include\libraries\ros_lib\map_msgs" -I"..\include\libraries\ros_lib\nav_msgs" -I"..\include\libraries\ros_lib\nodelet" -I"..\include\libraries\ros_lib\pcl_msgs" -I"..\include\libraries\ros_lib\polled_camera" -I"..\include\libraries\ros_lib\ros" -I"..\include\libraries\ros_lib\roscpp" -I"..\include\libraries\ros_lib\roscpp_tutorials" -I"..\include\libraries\ros_lib\rosgraph_msgs" -I"..\include\libraries\ros_lib\rospy_tutorials" -I"..\include\libraries\ros_lib\rosserial_arduino" -I"..\include\libraries\ros_lib\rosserial_msgs" -I"..\include\libraries\ros_lib\sensor_msgs" -I"..\include\libraries\ros_lib\shape_msgs" -I"..\include\libraries\ros_lib\smach_msgs" -I"..\include\libraries\ros_lib\std_msgs" -I"..\include\libraries\ros_lib\std_srvs" -I"..\include\libraries\ros_lib\stereo_msgs" -I"..\include\libraries\ros_lib\tf" -I"..\include\libraries\ros_lib\tf2_msgs" -I"..\include\libraries\ros_lib\theora_image_transport" -I"..\include\libraries\ros_lib\topic_tools" -I"..\include\libraries\ros_lib\trajectory_msgs" -I"..\include\libraries\ros_lib\turtlesim" -I"..\include\libraries\ros_lib\turtle_actionlib" -I"..\include\libraries\ros_lib\visualization_msgs" -I"..\include\core" -I"..\include\core\avr" -I"..\include\core\USB" -I"..\include\variants" -I"..\include\core\samd21" -I"..\include\core\samd21\include" -I"..\include\core\samd21\include\component" -I"..\include\core\samd21\include\instance" -I"..\include\core\samd21\include\pio"  -Os -fno-threadsafe-statics -fno-exceptions -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions -g3 -w -mcpu=cortex-m0plus -c -std=gnu++11 --param max-inline-insns-single=500 -nostdlib -MD -MP -MF "src/core/Print.d" -MT"src/core/Print.d" -MT"src/core/Print.o"   -o "src/core/Print.o" "../src/core/Print.cpp" 
C:\Users\tsemwal\Documents\Atmel Studio\7.0\ros_hello\ros_hello\ArduinoCore\Debug\Makefile(363,1): error: recipe for target 'src/core/Print.o' failed
        In file included from ..\include\core/Stream.h:26:0,
                         from ..\include\core/HardwareSerial.h:24,
                         from ..\include\core/Arduino.h:78,
                         from ../src/core/Print.cpp:20:
        ..\include\core/Print.h: In member function 'size_t Print::write(const char*)':
C:\Users\tsemwal\Documents\Atmel Studio\7.0\ros_hello\ros_hello\ArduinoCore\include\core\Print.h(53,52): error: 'strlen' was not declared in this scope
               return write((const uint8_t *)str, strlen(str));
                                                            ^
        make: *** [src/core/Print.o] Error 1
    Done executing task "RunCompilerTask" -- FAILED.
Done building target "CoreBuild" in project "ArduinoCore.cppproj" -- FAILED.
Done building project "ArduinoCore.cppproj" -- FAILED.

Build FAILED.
------ Build started: Project: HelloWorld, Configuration: Debug ARM ------
Build started.
Project "HelloWorld.cppproj" (default targets):
Target "PreBuildEvent" skipped, due to false condition; ('$(PreBuildEvent)'!='') was evaluated as (''!='').
Target "CoreBuild" in file "C:\Program Files (x86)\Atmel\Studio\7.0\Vs\Compiler.targets" from project "C:\Users\tsemwal\Documents\Atmel Studio\7.0\ros_hello\ros_hello\HelloWorld\HelloWorld.cppproj" (target "Build" depends on it):
    Task "RunCompilerTask"
        Shell Utils Path C:\Program Files (x86)\Atmel\Studio\7.0\shellUtils
        C:\Program Files (x86)\Atmel\Studio\7.0\shellUtils\make.exe all --jobs 8 --output-sync 
        Building file: .././Sketch.cpp
        Invoking: ARM/GNU C Compiler : 6.3.1
        In file included from ..\\..\ArduinoCore\include\core/Arduino.h:26:0,
                         from .././Sketch.cpp:2:
        ..\\..\ArduinoCore\include\libraries\ros_lib\std_msgs/string.h: In member function 'virtual int std_msgs::String::serialize(unsigned char*) const':
C:\Users\tsemwal\Documents\Atmel Studio\7.0\ros_hello\ros_hello\ArduinoCore\include\libraries\ros_lib\std_msgs\string.h(26,47): error: 'strlen' was not declared in this scope
               uint32_t length_data = strlen(this->data);
                                                       ^
C:\Users\tsemwal\Documents\Atmel Studio\7.0\ros_hello\ros_hello\ArduinoCore\include\libraries\ros_lib\std_msgs\string.h(29,57): error: 'memcpy' was not declared in this scope
               memcpy(outbuffer + offset, this->data, length_data);
                                                                 ^
        In file included from ..\\..\ArduinoCore\include\core/Stream.h:26:0,
                         from ..\\..\ArduinoCore\include\core/HardwareSerial.h:24,
                         from ..\\..\ArduinoCore\include\core/Arduino.h:78,
                         from .././Sketch.cpp:2:
        ..\\..\ArduinoCore\include\core/Print.h: In member function 'size_t Print::write(const char*)':
C:\Users\tsemwal\Documents\Atmel Studio\7.0\ros_hello\ros_hello\ArduinoCore\include\core\Print.h(53,52): error: 'strlen' was not declared in this scope
               return write((const uint8_t *)str, strlen(str));
                                                            ^
        In file included from ..\\..\ArduinoCore\include\libraries\ros_lib/ros/node_handle.h:41:0,
                         from ..\\..\ArduinoCore\include\libraries\ros_lib/ros.h:38,
                         from .././Sketch.cpp:11:
        ..\\..\ArduinoCore\include\libraries\ros_lib/rosserial_msgs/TopicInfo.h: In member function 'virtual int rosserial_msgs::TopicInfo::serialize(unsigned char*) const':
C:\Users\tsemwal\Documents\Atmel Studio\7.0\ros_hello\ros_hello\ArduinoCore\include\libraries\ros_lib\rosserial_msgs\TopicInfo.h(49,59): error: 'strlen' was not declared in this scope
               uint32_t length_topic_name = strlen(this->topic_name);
                                                                   ^
C:\Users\tsemwal\Documents\Atmel Studio\7.0\ros_hello\ros_hello\ArduinoCore\include\libraries\ros_lib\rosserial_msgs\TopicInfo.h(52,69): error: 'memcpy' was not declared in this scope
        "C:\Program Files (x86)\Atmel\Studio\7.0\toolchain\arm\arm-gnu-toolchain\bin\arm-none-eabi-g++.exe" -mthumb -D__SAMD21G18A__ -DDEBUG -DF_CPU=48000000L -DARDUINO=10809 -DARDUINO_SAMD_ZERO -DARDUINO_ARCH_SAMD -DUSB_VID=0x2341 -DUSB_PID=0x804d -DUSB_PRODUCT="\"Arduino Zero\"" -DUSB_MANUFACTURER="\"Arduino LLC\"" -DUSBCON -DSAMD_SERIES  -I"C:\Program Files (x86)\Atmel\Studio\7.0\Packs\arm\cmsis\5.0.1\CMSIS\Include" -I"..\\..\ArduinoCore\include\core" -I"..\\..\ArduinoCore\include\variants" -I"..\\..\ArduinoCore\include\core\avr" -I"..\\..\ArduinoCore\include\core\samd21" -I"..\\..\ArduinoCore\include\core\USB" -I"..\\..\ArduinoCore\include\core\samd21\include" -I"..\\..\ArduinoCore\include\core\samd21\include\component" -I"..\\..\ArduinoCore\include\core\samd21\include\instance" -I"..\\..\ArduinoCore\include\core\samd21\include\pio" -I"..\\..\ArduinoCore\include\libraries\ros_lib" -I"..\\..\ArduinoCore\include\libraries\ros_lib\actionlib" -I"..\\..\ArduinoCore\include\libraries\ros_lib\actionlib_msgs" -I"..\\..\ArduinoCore\include\libraries\ros_lib\actionlib_tutorials" -I"..\\..\ArduinoCore\include\libraries\ros_lib\bond" -I"..\\..\ArduinoCore\include\libraries\ros_lib\control_msgs" -I"..\\..\ArduinoCore\include\libraries\ros_lib\diagnostic_msgs" -I"..\\..\ArduinoCore\include\libraries\ros_lib\dynamic_reconfigure" -I"..\\..\ArduinoCore\include\libraries\ros_lib\gazebo_msgs" -I"..\\..\ArduinoCore\include\libraries\ros_lib\geometry_msgs" -I"..\\..\ArduinoCore\include\libraries\ros_lib\laser_assembler" -I"..\\..\ArduinoCore\include\libraries\ros_lib\map_msgs" -I"..\\..\ArduinoCore\include\libraries\ros_lib\nav_msgs" -I"..\\..\ArduinoCore\include\libraries\ros_lib\nodelet" -I"..\\..\ArduinoCore\include\libraries\ros_lib\pcl_msgs" -I"..\\..\ArduinoCore\include\libraries\ros_lib\polled_camera" -I"..\\..\ArduinoCore\include\libraries\ros_lib\ros" -I"..\\..\ArduinoCore\include\libraries\ros_lib\roscpp" -I"..\\..\ArduinoCore\include\libraries\ros_lib\roscpp_tutorials" -I"..\\..\ArduinoCore\include\libraries\ros_lib\rosgraph_msgs" -I"..\\..\ArduinoCore\include\libraries\ros_lib\rospy_tutorials" -I"..\\..\ArduinoCore\include\libraries\ros_lib\rosserial_arduino" -I"..\\..\ArduinoCore\include\libraries\ros_lib\rosserial_msgs" -I"..\\..\ArduinoCore\include\libraries\ros_lib\sensor_msgs" -I"..\\..\ArduinoCore\include\libraries\ros_lib\shape_msgs" -I"..\\..\ArduinoCore\include\libraries\ros_lib\smach_msgs" -I"..\\..\ArduinoCore\include\libraries\ros_lib\std_msgs" -I"..\\..\ArduinoCore\include\libraries\ros_lib\std_srvs" -I"..\\..\ArduinoCore\include\libraries\ros_lib\stereo_msgs" -I"..\\..\ArduinoCore\include\libraries\ros_lib\tf" -I"..\\..\ArduinoCore\include\libraries\ros_lib\tf2_msgs" -I"..\\..\ArduinoCore\include\libraries\ros_lib\theora_image_transport" -I"..\\..\ArduinoCore\include\libraries\ros_lib\topic_tools" -I"..\\..\ArduinoCore\include\libraries\ros_lib\trajectory_msgs" -I"..\\..\ArduinoCore\include\libraries\ros_lib\turtlesim" -I"..\\..\ArduinoCore\include\libraries\ros_lib\turtle_actionlib" -I"..\\..\ArduinoCore\include\libraries\ros_lib\visualization_msgs" -I"..\\..\ArduinoCore\include\libraries\ros_lib\examples\BlinkM"  -Os -fno-threadsafe-statics -fno-exceptions -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions -g3 -w -mcpu=cortex-m0plus -c -std=gnu++11 --param max-inline-insns-single=500 -nostdlib -MD -MP -MF "Sketch.d" -MT"Sketch.d" -MT"Sketch.o"   -o "Sketch.o" ".././Sketch.cpp" 
C:\Users\tsemwal\Documents\Atmel Studio\7.0\ros_hello\ros_hello\HelloWorld\Debug\Makefile(81,1): error: recipe for target 'Sketch.o' failed
               memcpy(outbuffer + offset, this->topic_name, length_topic_name);
                                                                             ^
        In file included from ..\\..\ArduinoCore\include\libraries\ros_lib/ros/node_handle.h:42:0,
                         from ..\\..\ArduinoCore\include\libraries\ros_lib/ros.h:38,
                         from .././Sketch.cpp:11:
        ..\\..\ArduinoCore\include\libraries\ros_lib/rosserial_msgs/Log.h: In member function 'virtual int rosserial_msgs::Log::serialize(unsigned char*) const':
C:\Users\tsemwal\Documents\Atmel Studio\7.0\ros_hello\ros_hello\ArduinoCore\include\libraries\ros_lib\rosserial_msgs\Log.h(36,45): error: 'strlen' was not declared in this scope
               uint32_t length_msg = strlen(this->msg);
                                                     ^
C:\Users\tsemwal\Documents\Atmel Studio\7.0\ros_hello\ros_hello\ArduinoCore\include\libraries\ros_lib\rosserial_msgs\Log.h(39,55): error: 'memcpy' was not declared in this scope
               memcpy(outbuffer + offset, this->msg, length_msg);
                                                               ^
        In file included from ..\\..\ArduinoCore\include\libraries\ros_lib/ros/node_handle.h:43:0,
                         from ..\\..\ArduinoCore\include\libraries\ros_lib/ros.h:38,
                         from .././Sketch.cpp:11:
        ..\\..\ArduinoCore\include\libraries\ros_lib/rosserial_msgs/RequestParam.h: In member function 'virtual int rosserial_msgs::RequestParamRequest::serialize(unsigned char*) const':
C:\Users\tsemwal\Documents\Atmel Studio\7.0\ros_hello\ros_hello\ArduinoCore\include\libraries\ros_lib\rosserial_msgs\RequestParam.h(27,47): error: 'strlen' was not declared in this scope
               uint32_t length_name = strlen(this->name);
                                                       ^
C:\Users\tsemwal\Documents\Atmel Studio\7.0\ros_hello\ros_hello\ArduinoCore\include\libraries\ros_lib\rosserial_msgs\RequestParam.h(30,57): error: 'memcpy' was not declared in this scope
               memcpy(outbuffer + offset, this->name, length_name);
                                                                 ^
        ..\\..\ArduinoCore\include\libraries\ros_lib/rosserial_msgs/RequestParam.h: In member function 'virtual int rosserial_msgs::RequestParamResponse::serialize(unsigned char*) const':
C:\Users\tsemwal\Documents\Atmel Studio\7.0\ros_hello\ros_hello\ArduinoCore\include\libraries\ros_lib\rosserial_msgs\RequestParam.h(121,57): error: 'strlen' was not declared in this scope
               uint32_t length_stringsi = strlen(this->strings[i]);
                                                                 ^
C:\Users\tsemwal\Documents\Atmel Studio\7.0\ros_hello\ros_hello\ArduinoCore\include\libraries\ros_lib\rosserial_msgs\RequestParam.h(124,67): error: 'memcpy' was not declared in this scope
               memcpy(outbuffer + offset, this->strings[i], length_stringsi);
                                                                           ^
        ..\\..\ArduinoCore\include\libraries\ros_lib/rosserial_msgs/RequestParam.h: In member function 'virtual int rosserial_msgs::RequestParamResponse::deserialize(unsigned char*)':
C:\Users\tsemwal\Documents\Atmel Studio\7.0\ros_hello\ros_hello\ArduinoCore\include\libraries\ros_lib\rosserial_msgs\RequestParam.h(153,68): error: 'memcpy' was not declared in this scope
                 memcpy( &(this->ints[i]), &(this->st_ints), sizeof(int32_t));
                                                                            ^
C:\Users\tsemwal\Documents\Atmel Studio\7.0\ros_hello\ros_hello\ArduinoCore\include\libraries\ros_lib\rosserial_msgs\RequestParam.h(175,70): error: 'memcpy' was not declared in this scope
                 memcpy( &(this->floats[i]), &(this->st_floats), sizeof(float));
                                                                              ^
C:\Users\tsemwal\Documents\Atmel Studio\7.0\ros_hello\ros_hello\ArduinoCore\include\libraries\ros_lib\rosserial_msgs\RequestParam.h(195,72): error: 'memcpy' was not declared in this scope
                 memcpy( &(this->strings[i]), &(this->st_strings), sizeof(char*));
                                                                                ^
        In file included from ..\\..\ArduinoCore\include\libraries\ros_lib/ros.h:38:0,
                         from .././Sketch.cpp:11:
        ..\\..\ArduinoCore\include\libraries\ros_lib/ros/node_handle.h: In member function 'bool ros::NodeHandle_<Hardware, MAX_SUBSCRIBERS, MAX_PUBLISHERS, INPUT_SIZE, OUTPUT_SIZE>::getParam(const char*, char**, int, int)':
C:\Users\tsemwal\Documents\Atmel Studio\7.0\ros_hello\ros_hello\ArduinoCore\include\libraries\ros_lib\ros\node_handle.h(654,53): error: there are no arguments to 'strcpy' that depend on a template parameter, so a declaration of 'strcpy' must be available [-fpermissive]
                   strcpy(param[i], req_param_resp.strings[i]);
                                                             ^
C:\Users\tsemwal\Documents\Atmel Studio\7.0\ros_hello\ros_hello\ArduinoCore\include\libraries\ros_lib\ros\node_handle.h(654,53): info: (if you use '-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated)
        make: *** [Sketch.o] Error 1
    Done executing task "RunCompilerTask" -- FAILED.
Done building target "CoreBuild" in project "HelloWorld.cppproj" -- FAILED.
Done building project "HelloWorld.cppproj" -- FAILED.

Build FAILED.
========== Build: 0 succeeded or up-to-date, 2 failed, 0 skipped ==========
 

Last Edited: Wed. Sep 11, 2019 - 01:10 PM
This reply has been marked as the solution. 
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Finally, I was able to solve the problem. 

 

TL;DR: Change the name of ros_lib library <String.h> to something else, for e.g., <StringRos.h>. Update the occurence wherever used. That's it.

 

From the errors, it was visible that AS7 is not able to recognise/use <string.h>. The reason being that there is a header file in ros_lib called <String.h>. Yes, this header file has the same name but with a capital "S". Now, the issue is that the Windows OS is case-insensitive to the #include <file> thus confusing both libraries as the same. 

 

I just changed the name of the library from String.h to StringRos.h and also changed the occurrences in any source files. Boom, AS7 compiled the project successfully.

 

I hope this helps.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Did not realise you created two threads for the same thing.  Will keep the other one open.

 

JIm

I would rather attempt something great and fail, than attempt nothing and succeed - Fortune Cookie

 

"The critical shortage here is not stuff, but time." - Johan Ekdahl

 

"Step N is required before you can do step N+1!" - ka7ehk

 

"If you want a career with a known path - become an undertaker. Dead people don't sue!" - Kartman

"Why is there a "Highway to Hell" and only a "Stairway to Heaven"? A prediction of the expected traffic load?"  - Lee "theusch"

 

Speak sweetly. It makes your words easier to digest when at a later date you have to eat them ;-)  - Source Unknown

Please Read: Code-of-Conduct

Atmel Studio6.2/AS7, DipTrace, Quartus, MPLAB, RSLogix user

Topic locked