B4R Question rLiquidCrystal-Library(1.0) -- > problem to compile


Licensed User
Longtime User

today i have try to work with the rLiquidCrystal-Library to work for a simple project with old LCD-Displays.
I have try the Sample code
Sample Code:
Sub Process_Globals
    Public Serial1 As Serial
    Private lcd As LiquidCrystal
End Sub

Private Sub AppStart

    lcd.Initialize(8, 255, 9, Array As Byte (4, 5, 6, 7))
    lcd.Begin(16, 4)
    lcd.Write("waiting for time")
End Sub

gives a compiler Error

Archiving built core (caching) in: C:\Users\Gerd\AppData\Local\Temp\arduino_cache_900275\core\core_arduino_avr_diecimila_cpu_atmega328_a2caa290d9205a367e9fca8a8a55d7da.a

C:\Users\Gerd\AppData\Local\Temp\ccvAuAkh.ltrans0.ltrans.o: In function `Initialize':
F:\B4R\Projekte\KäseLager\Objects\bin\sketch/rLiquidCrystal.cpp:6: undefined reference to `operator new(unsigned int, void*)'
F:\B4R\Projekte\KäseLager\Objects\bin\sketch/rLiquidCrystal.cpp:11: undefined reference to `operator new(unsigned int, void*)'

collect2.exe: error: ld returned 1 exit status
exit status 1

Has somebody suggestions ?

kind regards


Licensed User
Longtime User
Hi Erel,
this insert don`t works. I have change to inline C, that works.

But in the meantime i think it is another problem.
The last year i have only worked with ESP32Dev-Moduls
A simple commandline like

x = NumberFormat(Temp,2,1)

gives a similar error everytime when i have a arduino board selected (Due , uno ..).
A ESP32 board gives me no compiler Errror

F:\B4R\Projekte\KäseLager\Objects\bin\sketch\B4RCore.cpp.o: In function `B4R::B4RString::printableToString(Printable*)':
F:\B4R\Projekte\KäseLager\Objects\bin\sketch/B4RCore.cpp:358: undefined reference to `operator new(unsigned int, void*)'

Have you a idea what is wrong in the IDE ??
Upvote 0