I am having a problem with this library here is the error message:
Arduino: 1.8.13 (Windows 10), Board: "Arduino Uno"
In file included from C:\Users\BR194904\Documents\Arduino\libraries\Adafruit_TFTLCD\Adafruit_TFTLCD.cpp:19:0:
C:\Users\BR194904\Documents\Arduino\libraries\SPFD5408_TFT_Library-1.1.0\src/pin_magic.h:297:33: warning: backslash and newline separated by space
#define read8inline(result) { \
C:\Users\BR194904\Documents\Arduino\libraries\Adafruit_TFTLCD\Adafruit_TFTLCD.cpp: In member function 'void Adafruit_TFTLCD::init()':
C:\Users\BR194904\Documents\Arduino\libraries\Adafruit_TFTLCD\Adafruit_TFTLCD.cpp:117:3: error: 'textsize' was not declared in this scope
textsize = 1;
^~~~~~~~
C:\Users\BR194904\Documents\Arduino\libraries\Adafruit_TFTLCD\Adafruit_TFTLCD.cpp:117:3: note: suggested alternative: 'textsize_x'
textsize = 1;
^~~~~~~~
textsize_x
exit status 1
Error compiling for board Arduino Uno.
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
pert
May 17, 2021, 3:05pm
2
Hi @blakeblake11 . It looks like this was already fixed in the latest version of the library:
adafruit:master
← manuaatitya:fix-compilation-issue
opened 03:55PM - 15 Jan 20 UTC
1) The following change has been done to remove the compilation error when using… the library due to non-declaration of the datatype for the variable "textsize" used in line 115 of the code.
2) I have added the datatype "int" for the variable since the value assigned to it being 1.
3) Images before & after correction of this issue have also been attached.


Check to make sure you aren't using an older version of the library.
I tried it and it says: A library named TFTLCD-Library-master already exists
I tried compiling it and it says this now:
Exception 0x8b04488b 0xccccccd5 0x8b64cccc 0x4013
PC=0x4013
runtime: unknown pc 0x4013
stack: frame={sp:0x0, fp:0x0} stack=[0x12048000,0x1204a000)
runtime: unknown pc 0x4013
stack: frame={sp:0x0, fp:0x0} stack=[0x12048000,0x1204a000)
eax 0x32cee800
ebx 0x58003ffd
ecx 0x3ffed555
edx 0x55555555
edi 0x99999800
esi 0x99999999
ebp 0xdfde2cda
esp 0x0
eip 0x4013
eflags 0x0
cs 0x0
fs 0xb000ffff
gs 0x0
C:\Program Files (x86)\Arduino\arduino-builder returned 2
Error compiling for board Arduino Uno.
I did what you said and i am getting this error message
C:\Users\BR194904\AppData\Local\Temp\cc4dl0Cd.ltrans0.ltrans.o: In function drawX': C:\Users\BR194904\Downloads\TicTacToeEasy/TicTacToeEasy.ino:531: undefined reference to
x_bitmap'
C:\Users\BR194904\Downloads\TicTacToeEasy/TicTacToeEasy.ino:531: undefined reference to x_bitmap' C:\Users\BR194904\AppData\Local\Temp\cc4dl0Cd.ltrans0.ltrans.o: In function
drawCircle':
C:\Users\BR194904\Downloads\TicTacToeEasy/TicTacToeEasy.ino:526: undefined reference to circle' C:\Users\BR194904\Downloads\TicTacToeEasy/TicTacToeEasy.ino:526: undefined reference to
circle'
collect2.exe: error: ld returned 1 exit status
exit status 1
Error compiling for board Arduino Uno.
system
Closed
September 15, 2021, 2:18pm
6
This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.