- AuthorPosts
Hi everybody,
I’m trying with Arduino (both Ver. 1.8.19 and Ver. 2.0.4) to compile the example file “instructions_received_text” following very well the instructions printed on “Instruction for STONE UART Library” pdf file.
The Arduino IDE doesn’t compile the Sketch and shows the following errors:
Could you please help me?
Arduino:1.8.19 (Windows 7), Scheda:"Arduino Uno" stone_receive.cpp:21:1: error: 'frame_link' does not name a type; did you mean 'write_line'? frame_link * initLink(){ ^~~~~~~~~~ write_line stone_receive.cpp:30:1: error: 'frame_link' does not name a type; did you mean 'write_line'? frame_link * frame_link_p=initLink(); ^~~~~~~~~~ write_line stone_receive.cpp:32:1: error: 'frame_link' does not name a type; did you mean 'write_line'? frame_link * additional(frame_link * p, int base_offset) { ^~~~~~~~~~ write_line stone_receive.cpp:45:1: error: 'frame_link' does not name a type; did you mean 'write_line'? frame_link * delElem(frame_link * p) { ^~~~~~~~~~ write_line C:\Users\LOLLO_ACER\Desktop\STONE\Demo prese dal sito STONE\stone_serial-1.0.9\Example\Arduino&ESP32\Instructions_received_text\stone_receive.cpp: In function 'void serial_receive()': stone_receive.cpp:102:24: error: too many arguments to function 'void receive_parse()' receive_parse(0); ^ In file included from C:\Users\LOLLO_ACER\Desktop\STONE\Demo prese dal sito STONE\stone_serial-1.0.9\Example\Arduino&ESP32\Instructions_received_text\stone_receive.cpp:12:0: C:\Users\LOLLO_ACER\Desktop\STONE\Demo prese dal sito STONE\stone_serial-1.0.9\Example\Arduino&ESP32\Instructions_received_text\stone.h:165:6: note: declared here void receive_parse (void); ^~~~~~~~~~~~~ C:\Users\LOLLO_ACER\Desktop\STONE\Demo prese dal sito STONE\stone_serial-1.0.9\Example\Arduino&ESP32\Instructions_received_text\stone_receive.cpp: In function 'int find_frame_(unsigned char*)': stone_receive.cpp:134:15: error: 'frame_link_p' was not declared in this scope frame_link_p = additional(frame_link_p, num-6); ^~~~~~~~~~~~ C:\Users\LOLLO_ACER\Desktop\STONE\Demo prese dal sito STONE\stone_serial-1.0.9\Example\Arduino&ESP32\Instructions_received_text\stone_receive.cpp:134:15: note: suggested alternative: 'write_line' frame_link_p = additional(frame_link_p, num-6); ^~~~~~~~~~~~ write_line stone_receive.cpp:134:30: error: 'additional' was not declared in this scope frame_link_p = additional(frame_link_p, num-6); ^~~~~~~~~~ stone_receive.cpp:142:7: error: 'frame_link_p' was not declared in this scope if (frame_link_p->frame_count>0) ^~~~~~~~~~~~ C:\Users\LOLLO_ACER\Desktop\STONE\Demo prese dal sito STONE\stone_serial-1.0.9\Example\Arduino&ESP32\Instructions_received_text\stone_receive.cpp:142:7: note: suggested alternative: 'write_line' if (frame_link_p->frame_count>0) ^~~~~~~~~~~~ write_line C:\Users\LOLLO_ACER\Desktop\STONE\Demo prese dal sito STONE\stone_serial-1.0.9\Example\Arduino&ESP32\Instructions_received_text\stone_receive.cpp: In function 'void serial_receive_frame(short unsigned int)': stone_receive.cpp:162:3: error: 'frame_link' was not declared in this scope frame_link * t = frame_link_p; ^~~~~~~~~~ C:\Users\LOLLO_ACER\Desktop\STONE\Demo prese dal sito STONE\stone_serial-1.0.9\Example\Arduino&ESP32\Instructions_received_text\stone_receive.cpp:162:3: note: suggested alternative: 'write_line' frame_link * t = frame_link_p; ^~~~~~~~~~ write_line stone_receive.cpp:162:16: error: 't' was not declared in this scope frame_link * t = frame_link_p; ^ stone_receive.cpp:162:20: error: 'frame_link_p' was not declared in this scope frame_link * t = frame_link_p; ^~~~~~~~~~~~ C:\Users\LOLLO_ACER\Desktop\STONE\Demo prese dal sito STONE\stone_serial-1.0.9\Example\Arduino&ESP32\Instructions_received_text\stone_receive.cpp:162:20: note: suggested alternative: 'write_line' frame_link * t = frame_link_p; ^~~~~~~~~~~~ write_line C:\Users\LOLLO_ACER\Desktop\STONE\Demo prese dal sito STONE\stone_serial-1.0.9\Example\Arduino&ESP32\Instructions_received_text\stone_receive_group.cpp: In function 'void receive_parse()': stone_receive_group.cpp:371:7: error: 'case_file_rw' was not declared in this scope case_file_rw(); ^~~~~~~~~~~~ exit status 1 'frame_link' does not name a type; did you mean 'write_line'? Attachments:
You must be logged in to view attached files.Hi. Hope you find the solution for this error. I am struggling with the same problem for Arduino UNO board.
This is quite dissapointing because we have already bought a lot of various pieces and the new libraries does not work correctly like the previous versions of the display, which worked perfectly using simple, but robust HEX commands.
https://github.com/STONElibrary/stone_serial/tree/v1.1.0
The example in version 1.1.0 compiles
- AuthorPosts
- You must be logged in to reply to this topic.