-
Hi, Errors: C:\Users\lndinh\AppData\Local\Temp\ccihk18t.ltrans0.ltrans.o: In function `setup': C:\Users\lndinh\Documents\Arduino\src/src.ino:49: undefined reference to `EVE_cmd_dl(unsigned long)' C:\Users\lndinh\Documents\Arduino\src/src.ino:50: undefined reference to `EVE_cmd_dl(unsigned long)' C:\Users\lndinh\Documents\Arduino\src/src.ino:51: undefined reference to `EVE_cmd_dl(unsigned long)' C:\Users\lndinh\Documents\Arduino\src/src.ino:52: undefined reference to `EVE_color_rgb(unsigned long)' C:\Users\lndinh\Documents\Arduino\src/src.ino:53: undefined reference to `EVE_cmd_text(int, int, int, unsigned int, char const*)' C:\Users\lndinh\Documents\Arduino\src/src.ino:54: undefined reference to `EVE_cmd_dl(unsigned long)' C:\Users\lndinh\Documents\Arduino\src/src.ino:55: undefined reference to `EVE_cmd_dl(unsigned long)' C:\Users\lndinh\Documents\Arduino\src/src.ino:56: undefined reference to `EVE_execute_cmd()' collect2.exe: error: ld returned 1 exit status exit status 1 Error compiling for board Arduino Nano. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Hello, which one is that exactly? While this is using the Arduino framework, it is not for the Arduino IDE. And PlatformIO is downloading the library code from Github when compiling the example. Ok, lets try something. I grabbed this folder: Renamed the folder to EVE_Test_Arduino. The pin configuration is in EVE_target.h, line 1608ff in this case with the nano using an AVR: So yes, sorry, while I do support Arduino, I do not support the Arduino-IDE. |
Beta Was this translation helpful? Give feedback.
-
Hi Rudolph, P.S I used the dev laptop at work and that doesn't have internet, so I didn't use your platformio.ini to pull the source code directly from Github, would this make a different? |
Beta Was this translation helpful? Give feedback.
Hi Rudolph,
More information: I downloaded PlatformIO and your codes. I create a new project and manually put all of the library files (EVE.h, EVE_commands.h, etc..) in subFolder Mylib under lib, in src folder I have main.cpp which I copied and pasted your EVE_Test.cpp codes, and tft.c, tft.h, tft_data.c and tft_data.h files. I experienced the same thing, when called function EVE_cmd_dl directly from main.cpp I got that undefined reference error. But I could call that same function in tft.c...Maybe C++ file has difficulty calling C functions??
I notice that you have the C++wrapper for Arduino, should I define that some where in your codes?
Thank you,
Ltarm
P.S I used the dev laptop at wor…