Open Kean4711DUB opened 2 years ago
Also I mainly just want to get 1 or 2 taggers working to start off with. and is there a possibility to contact over email or back and forward on here to make sure I have all I need.
Hey, sorry for the late response. I haven't been here in a while. Do you still need help?
So, first of all, your problem is this:
c:/users/antoi/documents/arduinodata/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r1/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: C:\Users\Antoi\AppData\Local\Temp\arduino_cache_925334\core\core_cf6db8d514f09e8394b4400cf8461f46.a(main.cpp.o):(.literal._Z8loopTaskPv+0x8): undefined reference to `setup()'
c:/users/antoi/documents/arduinodata/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r1/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: C:\Users\Antoi\AppData\Local\Temp\arduino_cache_925334\core\core_cf6db8d514f09e8394b4400cf8461f46.a(main.cpp.o):(.literal._Z8loopTaskPv+0xc): undefined reference to `loop()'
c:/users/antoi/documents/arduinodata/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r1/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: C:\Users\Antoi\AppData\Local\Temp\arduino_cache_925334\core\core_cf6db8d514f09e8394b4400cf8461f46.a(main.cpp.o): in function `loopTask(void*)':
C:\Users\Antoi\Documents\ArduinoData\packages\esp32\hardware\esp32\2.0.0\cores\esp32/main.cpp:38: undefined reference to `setup()'
c:/users/antoi/documents/arduinodata/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r1/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: C:\Users\Antoi\Documents\ArduinoData\packages\esp32\hardware\esp32\2.0.0\cores\esp32/main.cpp:44: undefined reference to `loop()'
collect2.exe: error: ld returned 1 exit status
The linker is missing some references. I guess you wanted to compile this with the arduino IDE, am I correct? Did you install the Arduino-ESP32 support like described here? https://docs.espressif.com/projects/arduino-esp32/en/latest/installing.html
Hey thanks for your response. I just saw it. I actually am using platformio with visual studio code using the arduino framework. I'm not sure if that's considered the same thing. Can this work on arduino the same? or will platformio be better?
Platformio + VSCode is fine. This should work. Are you still having the same trouble like when you did your first post?
Thanks for the quick response. Yes I am. This is the issue I'm getting now though. (See below) I don't know if "logtag" and "lagtag" are supposed to be the same thing but they are not shown to be declared. And setup and loop for tagger is suddenly not working.
[{ "resource": "/c:/Users/Antoi/OneDrive/Documents/PlatformIO/Projects/tagger/src/ble.cpp", "owner": "cpp", "severity": 8, "message": "'logtag' was not declared in this scope", "startLineNumber": 63, "startColumn": 18, "endLineNumber": 63, "endColumn": 18 },{ "resource": "/c:/Users/Antoi/OneDrive/Documents/PlatformIO/Projects/tagger/src/ble.cpp", "owner": "cpp", "severity": 8, "message": "'logtag' was not declared in this scope", "startLineNumber": 81, "startColumn": 18, "endLineNumber": 81, "endColumn": 18 },{ "resource": "/c:/Users/Antoi/OneDrive/Documents/PlatformIO/Projects/tagger/src/ir_and_trigger.cpp", "owner": "cpp", "severity": 8, "message": "'logtag' was not declared in this scope", "startLineNumber": 18, "startColumn": 14, "endLineNumber": 18, "endColumn": 14 },{ "resource": "/c:/Users/Antoi/OneDrive/Documents/PlatformIO/Projects/tagger/src/ir_and_trigger.cpp", "owner": "cpp", "severity": 8, "message": "'logtag' was not declared in this scope", "startLineNumber": 115, "startColumn": 14, "endLineNumber": 115, "endColumn": 14 },{ "resource": "/c:/Users/Antoi/OneDrive/Documents/PlatformIO/Projects/tagger/src/IR32/IR32-master/src/IRRecv.cpp", "owner": "cpp", "severity": 8, "message": "too few arguments to function 'void vRingbufferGetInfo(RingbufHandle_t, UBaseType_t, UBaseType_t, UBaseType_t, UBaseType_t, UBaseType_t*)'", "startLineNumber": 49, "startColumn": 55, "endLineNumber": 49, "endColumn": 55 },{ "resource": "/c:/Users/Antoi/OneDrive/Documents/PlatformIO/Projects/tagger/src/tagger.cpp", "owner": "cpp", "severity": 8, "message": "redefinition of 'void setup()'", "startLineNumber": 104, "startColumn": 6, "endLineNumber": 104, "endColumn": 6 },{ "resource": "/c:/Users/Antoi/OneDrive/Documents/PlatformIO/Projects/tagger/src/tagger.cpp", "owner": "cpp", "severity": 8, "message": "redefinition of 'void loop()'", "startLineNumber": 183, "startColumn": 6, "endLineNumber": 183, "endColumn": 6 },{ "resource": "/c:/Users/Antoi/OneDrive/Documents/PlatformIO/Projects/tagger/.vscode/c_cpp_properties.json", "owner": "c:\Users\Antoi\OneDrive\Documents\PlatformIO\Projects\tagger", "severity": 4, "message": "Cannot find \"c:\Users\Antoi\OneDrive\Documents\PlatformIO\Projects\tagger\include\".", "startLineNumber": 11, "startColumn": 17, "endLineNumber": 11, "endColumn": 87 },{ "resource": "/c:/Users/Antoi/OneDrive/Documents/PlatformIO/Projects/tagger/.vscode/c_cpp_properties.json", "owner": "c:\Users\Antoi\OneDrive\Documents\PlatformIO\Projects\tagger", "severity": 4, "message": "Cannot find \"c:\Users\Antoi\OneDrive\Documents\PlatformIO\Projects\tagger\include\".", "startLineNumber": 239, "startColumn": 21, "endLineNumber": 239, "endColumn": 91 }]
Thanks for the quick response. Yes I am. This is the issue I'm getting now though. (See below) The "logtag" is not declared is still giving me trouble and the ring buffer.
[{ "resource": "/c:/Users/Antoi/OneDrive/Documents/PlatformIO/Projects/tagger/src/ble.cpp", "owner": "cpp", "severity": 8, "message": "'logtag' was not declared in this scope", "startLineNumber": 63, "startColumn": 18, "endLineNumber": 63, "endColumn": 18 },{ "resource": "/c:/Users/Antoi/OneDrive/Documents/PlatformIO/Projects/tagger/src/ble.cpp", "owner": "cpp", "severity": 8, "message": "'logtag' was not declared in this scope", "startLineNumber": 81, "startColumn": 18, "endLineNumber": 81, "endColumn": 18 },{ "resource": "/c:/Users/Antoi/OneDrive/Documents/PlatformIO/Projects/tagger/src/ir_and_trigger.cpp", "owner": "cpp", "severity": 8, "message": "'logtag' was not declared in this scope", "startLineNumber": 18, "startColumn": 14, "endLineNumber": 18, "endColumn": 14 },{ "resource": "/c:/Users/Antoi/OneDrive/Documents/PlatformIO/Projects/tagger/src/ir_and_trigger.cpp", "owner": "cpp", "severity": 8, "message": "'logtag' was not declared in this scope", "startLineNumber": 115, "startColumn": 14, "endLineNumber": 115, "endColumn": 14 },{ "resource": "/c:/Users/Antoi/OneDrive/Documents/PlatformIO/Projects/tagger/src/IR32/IR32-master/src/IRRecv.cpp", "owner": "cpp", "severity": 8, "message": "too few arguments to function 'void vRingbufferGetInfo(RingbufHandle_t, UBaseType_t, UBaseType_t, UBaseType_t, UBaseType_t, UBaseType_t*)'", "startLineNumber": 49, "startColumn": 55, "endLineNumber": 49, "endColumn": 55 },{ "resource": "/c:/Users/Antoi/OneDrive/Documents/PlatformIO/Projects/tagger/.vscode/c_cpp_properties.json", "owner": "c:\Users\Antoi\OneDrive\Documents\PlatformIO\Projects\tagger", "severity": 4, "message": "Cannot find \"c:\Users\Antoi\OneDrive\Documents\PlatformIO\Projects\tagger\include\".", "startLineNumber": 11, "startColumn": 17, "endLineNumber": 11, "endColumn": 87 },{ "resource": "/c:/Users/Antoi/OneDrive/Documents/PlatformIO/Projects/tagger/.vscode/c_cpp_properties.json", "owner": "c:\Users\Antoi\OneDrive\Documents\PlatformIO\Projects\tagger", "severity": 4, "message": "Cannot find \"c:\Users\Antoi\OneDrive\Documents\PlatformIO\Projects\tagger\include\".", "startLineNumber": 239, "startColumn": 21, "endLineNumber": 239, "endColumn": 91 }]
I need assistance I'm still new at coding. I added all the files I saw come up with an error and now I have the following error message please assist. Any assistance would be greatly appreciated. Arduino: 1.8.16 (Windows Store 1.8.51.0) (Windows 10), Board: "ESP32 Dev Module, Disabled, Default 4MB with spiffs (1.2MB APP/1.5MB SPIFFS), 240MHz (WiFi/BT), QIO, 80MHz, 4MB (32Mb), 921600, Core 1, Core 1, None"