Problem compiling my custom extension library


#1

when i try to compile using the mblock it gets an error saying my library is faulty
…but my library work perfectly when im compiling with the arduino IDE

plss help mee … im trying to create an extension for my robot

///////////this is the error////////////

start processing code…

processing code by middleware of pinMode

Arduino server connected.

Arduino compile…

variantPath:/app/src/external/arduino/avr-library/variants/eightanaloginputs

avr-toolchain/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10809 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR -I"/app/src/external/arduino/avr-library/variants/eightanaloginputs" -I"avr-library/cores/arduino" -I"arduino-libraries/makeblock/src/" -I"arduino-libraries/makeblock/src/utility/avr/" -I"avr-library/libraries/Wire/src/utility/" -I"avr-library/libraries/Wire/src/" -I"avr-library/libraries/EEPROM/src/" -I"avr-library/libraries/SPI/src/" -I"avr-library/libraries/SoftwareSerial/src/" -I"arduino-libraries/arduino/WiFi/src/" -I"arduino-libraries/arduino/SD/src/" -I"arduino-libraries/arduino/Bridge/src/" -I"arduino-libraries/arduino/Temboo/src/" -I"arduino-libraries/arduino/Servo/src/" -I"arduino-libraries/arduino/Ethernet/src/" -I"arduino-libraries/arduino/TFT/src/" -I"arduino-libraries/arduino/SpacebrewYun/src/" -I"arduino-libraries/arduino/LiquidCrystal/src/" -I"arduino-libraries/arduino/GSM/src/" “/root/mblock-avr/temp/build/src/OfflineBroadcast.cpp” -o “/root/mblock-avr/temp/build/src/OfflineBroadcast.o”

variantPath:/app/src/external/arduino/avr-library/variants/eightanaloginputs

avr-toolchain/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10809 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR -I"/app/src/external/arduino/avr-library/variants/eightanaloginputs" -I"avr-library/cores/arduino" -I"arduino-libraries/makeblock/src/" -I"arduino-libraries/makeblock/src/utility/avr/" -I"avr-library/libraries/Wire/src/utility/" -I"avr-library/libraries/Wire/src/" -I"avr-library/libraries/EEPROM/src/" -I"avr-library/libraries/SPI/src/" -I"avr-library/libraries/SoftwareSerial/src/" -I"arduino-libraries/arduino/WiFi/src/" -I"arduino-libraries/arduino/SD/src/" -I"arduino-libraries/arduino/Bridge/src/" -I"arduino-libraries/arduino/Temboo/src/" -I"arduino-libraries/arduino/Servo/src/" -I"arduino-libraries/arduino/Ethernet/src/" -I"arduino-libraries/arduino/TFT/src/" -I"arduino-libraries/arduino/SpacebrewYun/src/" -I"arduino-libraries/arduino/LiquidCrystal/src/" -I"arduino-libraries/arduino/GSM/src/" “/root/mblock-avr/temp/build/newlib/TuahMini.cpp” -o “/root/mblock-avr/temp/build/newlib/TuahMini.o”

Command failed: avr-toolchain/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10809 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR -I"/app/src/external/arduino/avr-library/variants/eightanaloginputs" -I"avr-library/cores/arduino" -I"arduino-libraries/makeblock/src/" -I"arduino-libraries/makeblock/src/utility/avr/" -I"avr-library/libraries/Wire/src/utility/" -I"avr-library/libraries/Wire/src/" -I"avr-library/libraries/EEPROM/src/" -I"avr-library/libraries/SPI/src/" -I"avr-library/libraries/SoftwareSerial/src/" -I"arduino-libraries/arduino/WiFi/src/" -I"arduino-libraries/arduino/SD/src/" -I"arduino-libraries/arduino/Bridge/src/" -I"arduino-libraries/arduino/Temboo/src/" -I"arduino-libraries/arduino/Servo/src/" -I"arduino-libraries/arduino/Ethernet/src/" -I"arduino-libraries/arduino/TFT/src/" -I"arduino-libraries/arduino/SpacebrewYun/src/" -I"arduino-libraries/arduino/LiquidCrystal/src/" -I"arduino-libraries/arduino/GSM/src/" “/root/mblock-avr/temp/build/newlib/TuahMini.cpp” -o “/root/mblock-avr/temp/build/newlib/TuahMini.o” /root/mblock-avr/temp/build/newlib/TuahMini.cpp: In member function ‘void tuahmini::MazeRunner(int)’: /root/mblock-avr/temp/build/newlib/TuahMini.cpp:186:7: error: ‘motortank’ was not declared in this scope motortank(“forward”, “backward”, speed, speed); ^~~~~~~~~ /root/mblock-avr/temp/build/newlib/TuahMini.cpp:186:7: note: suggested alternative: ‘motorsteer’ motortank(“forward”, “backward”, speed, speed); ^~~~~~~~~ motorsteer /root/mblock-avr/temp/build/newlib/TuahMini.cpp:191:7: error: ‘motortank’ was not declared in this scope motortank(“forward”, “backward”, speed, speed); ^~~~~~~~~ /root/mblock-avr/temp/build/newlib/TuahMini.cpp:191:7: note: suggested alternative: ‘motorsteer’ motortank(“forward”, “backward”, speed, speed); ^~~~~~~~~ motorsteer

Failed to compile file newlib/TuahMini.cpp

Arduino compile finish.

Arduino server disconnected.

////////the error/////////////