Extension Errors


#1

I m trying to use LCD extension other than LCD I2C.

However when I try to upload, the same error occurs over and over…

The error shows

C:\Program Files (x86)\mBlock\Arduino\libraries\LiquidCrystal\src/LiquidCrystal.cpp:168: multiple definition of LiquidCrystal::rightToLeft()' C:\Users\AKHPark\AppData\Local\Temp\build8417687748859486173.tmp\LiquidCrystal.cpp.o:C:\Users\AKHPark\AppData\Local\Temp\build8417687748859486173.tmp/LiquidCrystal.cpp:168: first defined here C:\Users\AKHPark\AppData\Local\Temp\build8417687748859486173.tmp\LiquidCrystal\LiquidCrystal.cpp.o: In functionLiquidCrystal::setRowOffsets(int, int, int, int)’:
C:\Program Files (x86)\mBlock\Arduino\libraries\LiquidCrystal\src/LiquidCrystal.cpp:168: multiple definition of LiquidCrystal::autoscroll()' C:\Users\AKHPark\AppData\Local\Temp\build8417687748859486173.tmp\LiquidCrystal.cpp.o:C:\Users\AKHPark\AppData\Local\Temp\build8417687748859486173.tmp/LiquidCrystal.cpp:168: first defined here C:\Users\AKHPark\AppData\Local\Temp\build8417687748859486173.tmp\LiquidCrystal\LiquidCrystal.cpp.o: In functionLiquidCrystal::setRowOffsets(int, int, int, int)’:
C:\Program Files (x86)\mBlock\Arduino\libraries\LiquidCrystal\src/LiquidCrystal.cpp:168: multiple definition of LiquidCrystal::noAutoscroll()' C:\Users\AKHPark\AppData\Local\Temp\build8417687748859486173.tmp\LiquidCrystal.cpp.o:C:\Users\AKHPark\AppData\Local\Temp\build8417687748859486173.tmp/LiquidCrystal.cpp:168: first defined here C:\Users\AKHPark\AppData\Local\Temp\build8417687748859486173.tmp\LiquidCrystal\LiquidCrystal.cpp.o: In functionLiquidCrystal::setRowOffsets(int, int, int, int)’:
C:\Program Files (x86)\mBlock\Arduino\libraries\LiquidCrystal\src/LiquidCrystal.cpp:168: multiple definition of `LiquidCrystal::createChar(unsigned char, unsigned char*)'
C:\Users\AKHPark\AppData\Local\Temp\build8417687748859486173.tmp\LiquidCrystal.cpp.o:C:\Users\AKHPark\AppData\Local\Temp\build8417687748859486173.tmp/LiquidCrystal.cpp:168: first defined here
collect2.exe: error: ld returned 1 exit status
哪颇老 坷幅 惯积.

it looked like the libraries in mblock file in program file directory was malfunctioning, hence I tried changing the libraries from Arduino IDE, which works perfectly fine in Arduino IDE.

Anybody knows what is the problem with LiquidCrystal library?


#2

If the extension is nested exactly the same library liquidCristall as in the mBlock, then there are similar errors. Try to choose the option “Edit with arduinoIDE” and upload a sketch from the IDE. To eliminate such mistakes - it is better when writing libraries is used to rename library LiquidCristall and rename functions and procedures used in extension. In their extensions, I renamed all of this and no more similar errors.


#3

I have changed the name of the library (directory) in Arduino directory, though it seems this wasn’t the trick… Maybe I should go and try modifying the cpp and h file themselves, which I tried to avoid…grr… Anyway it is quite strange because other libraries that Arduino provides seem to work fine, such as servo.h but LiquidCrystal… BTW Thanks for the reply!


#4

Try rename files .cpp and .h in folder “src” of extension and change it names in .s2e file (in “inc” structure).