[SOLVED] Can compile on Arduino IDE [1.8.9] but NOT on Atmel Studio [AS 7.0.1931]

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

Hello,

 

I am trying to build ROS-Serial project (HelloWorld example). I am able to easily compile it in Arduino IDE however, when I create a project using Arduino Sketch, the build fails. 

 

Below is the build output:

------ 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_try1\ros_try1\ArduinoCore\ArduinoCore.cppproj" (target "Build" depends on it):
	Using "RunCompilerTask" task from assembly "C:\Program Files (x86)\Atmel\Studio\7.0\Extensions\Application\AvrGCC.dll".
	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/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_try1\ros_try1\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_try1\ros_try1\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_try1\ros_try1\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_try1\ros_try1\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_try1\ros_try1\ArduinoCore\Debug\Makefile(342,1): error: recipe for target 'src/core/itoa.o' failed
		make: *** Waiting for unfinished jobs....
		Building file: ../src/core/pulse.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/pulse.c:19:
C:\Users\tsemwal\Documents\Atmel Studio\7.0\ros_try1\ros_try1\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_try1\ros_try1\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/pulse.c:19:
C:\Users\tsemwal\Documents\Atmel Studio\7.0\ros_try1\ros_try1\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_try1\ros_try1\ArduinoCore\include\libraries\ros_lib\std_msgs\string.h(10,1): error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
		 {
		 ^
		make: *** [src/core/pulse.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/pulse.d" -MT"src/core/pulse.d" -MT"src/core/pulse.o"   -o "src/core/pulse.o" "../src/core/pulse.c"
C:\Users\tsemwal\Documents\Atmel Studio\7.0\ros_try1\ros_try1\ArduinoCore\Debug\Makefile(370,1): error: recipe for target 'src/core/pulse.o' failed
		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_try1\ros_try1\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_try1\ros_try1\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_try1\ros_try1\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_try1\ros_try1\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_try1\ros_try1\ArduinoCore\Debug\Makefile(321,1): error: recipe for target 'src/core/delay.o' failed
		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_try1\ros_try1\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_try1\ros_try1\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_try1\ros_try1\ArduinoCore\Debug\Makefile(335,1): error: recipe for target 'src/core/IPAddress.o' failed
C:\Users\tsemwal\Documents\Atmel Studio\7.0\ros_try1\ros_try1\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_try1\ros_try1\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_try1\ros_try1\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_try1\ros_try1\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/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_try1\ros_try1\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_try1\ros_try1\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:\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_try1\ros_try1\ArduinoCore\Debug\Makefile(349,1): error: recipe for target 'src/core/main.o' failed
C:\Users\tsemwal\Documents\Atmel Studio\7.0\ros_try1\ros_try1\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
		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_try1\ros_try1\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_try1\ros_try1\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/Print.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/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_try1\ros_try1\ArduinoCore\Debug\Makefile(363,1): error: recipe for target 'src/core/Print.o' failed
C:\Users\tsemwal\Documents\Atmel Studio\7.0\ros_try1\ros_try1\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
		Building file: ../src/core/Reset.cpp
		Invoking: ARM/GNU C Compiler : 6.3.1
		In file included from ..\include\core/Arduino.h:26:0,
		                 from ../src/core/Reset.cpp:19:
		..\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_try1\ros_try1\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_try1\ros_try1\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/Reset.cpp:19:
		..\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/Reset.d" -MT"src/core/Reset.d" -MT"src/core/Reset.o"   -o "src/core/Reset.o" "../src/core/Reset.cpp"
C:\Users\tsemwal\Documents\Atmel Studio\7.0\ros_try1\ros_try1\ArduinoCore\Debug\Makefile(377,1): error: recipe for target 'src/core/Reset.o' failed
C:\Users\tsemwal\Documents\Atmel Studio\7.0\ros_try1\ros_try1\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/Reset.o] Error 1
		Building file: ../src/core/SERCOM.cpp
		Invoking: ARM/GNU C Compiler : 6.3.1
		In file included from ..\include\core/Arduino.h:26:0,
		                 from ../src/core/SERCOM.cpp:19:
		..\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_try1\ros_try1\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_try1\ros_try1\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/SERCOM.cpp:19:
		..\include\core/Print.h: In member function 'size_t Print::write(const char*)':
C:\Users\tsemwal\Documents\Atmel Studio\7.0\ros_try1\ros_try1\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/SERCOM.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/SERCOM.d" -MT"src/core/SERCOM.d" -MT"src/core/SERCOM.o"   -o "src/core/SERCOM.o" "../src/core/SERCOM.cpp"
C:\Users\tsemwal\Documents\Atmel Studio\7.0\ros_try1\ros_try1\ArduinoCore\Debug\Makefile(384,1): error: recipe for target 'src/core/SERCOM.o' failed
	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_try1\ros_try1\HelloWorld\HelloWorld.cppproj" (target "Build" depends on it):
	Using "RunCompilerTask" task from assembly "C:\Program Files (x86)\Atmel\Studio\7.0\Extensions\Application\AvrGCC.dll".
	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
		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_try1\ros_try1\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_try1\ros_try1\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:
		Building file: .././Sketch.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"..\\..\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_try1\ros_try1\HelloWorld\Debug\Makefile(81,1): error: recipe for target 'Sketch.o' failed
		..\\..\ArduinoCore\include\core/Print.h: In member function 'size_t Print::write(const char*)':
C:\Users\tsemwal\Documents\Atmel Studio\7.0\ros_try1\ros_try1\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_try1\ros_try1\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_try1\ros_try1\ArduinoCore\include\libraries\ros_lib\rosserial_msgs\TopicInfo.h(52,69): error: 'memcpy' was not declared in this scope
		       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_try1\ros_try1\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_try1\ros_try1\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_try1\ros_try1\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_try1\ros_try1\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_try1\ros_try1\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_try1\ros_try1\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_try1\ros_try1\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_try1\ros_try1\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_try1\ros_try1\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_try1\ros_try1\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_try1\ros_try1\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 ==========

As can be seen, it is trying to compile a file with namespace keyword using a "arm-gcc" however namespace is a C++ keyword.

 

My question is WHY Arduino is able to easily compile it and NOT AS7?

 

Any help is really appreciated. Thanks.

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

tsemwal wrote:

C:\Users\tsemwal\Documents\Atmel Studio\7.0\ros_try1\ros_try1\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:

 

 

Missing a semicolon somewhere?

 

It also looks like maybe you need to migrate an include file or two as the report says the compiler cannot find certain files.

 

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

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 1
		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_try1\ros_try1\ArduinoCore\include\libraries\ros_lib\ros\msg.h(41,1): error: unknown type name 'namespace'
		 namespace ros

From this I would say the include files and/or paths are messed up, while building itoa.c (using the C compiler as expected) the file string.h is included from ros_lib, this is the wrong string.h (actual error is it includes msg.h from ros_lib which needs to be compiled as C++).

/Lars

 

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

@Lajon, yes this is what I also feel,

 

so how to make AS7 compile the files properly?? I need to program my custom SAMD21 board. Can you please help?

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.