Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

compilation problem #5

Open
motogon opened this issue Jul 23, 2024 · 2 comments
Open

compilation problem #5

motogon opened this issue Jul 23, 2024 · 2 comments

Comments

@motogon
Copy link

motogon commented Jul 23, 2024

hi

Could you tell me exactly what libraries and versions you used when compiling .

Thank you

@IAmNewbe
Copy link
Owner

hello
What library did you find the error in?
was it the thingsboard lib ?

@motogon
Copy link
Author

motogon commented Jul 24, 2024

/Users/dend/Library/Arduino15/packages/esp32/tools/esp-x32/2302/bin/xtensa-esp32-elf-g++ -MMD -c @/Users/dend/Library/Arduino15/packages/esp32/tools/esp32-arduino-libs/idf-release_v5.1-bd2b9390ef/esp32/flags/cpp_flags -w -Os -DF_CPU=240000000L -DARDUINO=10607 -DARDUINO_ESP32_WROVER_KIT -DARDUINO_ARCH_ESP32 "-DARDUINO_BOARD="ESP32_WROVER_KIT"" "-DARDUINO_VARIANT="esp32"" -DARDUINO_PARTITION_default "-DARDUINO_HOST_OS="macosx"" "-DARDUINO_FQBN="esp32:esp32:esp32wroverkit:UploadSpeed=921600,CPUFreq=240,FlashFreq=80,FlashMode=qio,FlashSize=4M,PartitionScheme=default,DebugLevel=none,PSRAM=enabled,EraseFlash=none"" -DESP32 -DCORE_DEBUG_LEVEL=0 -DBOARD_HAS_PSRAM -mfix-esp32-psram-cache-issue -mfix-esp32-psram-cache-strategy=memw -DARDUINO_USB_CDC_ON_BOOT=0 @/Users/dend/Library/Arduino15/packages/esp32/tools/esp32-arduino-libs/idf-release_v5.1-bd2b9390ef/esp32/flags/defines -I/Users/dend/Documents/Arduino/3-phase-electricity-monitoring/read3Phase -iprefix /Users/dend/Library/Arduino15/packages/esp32/tools/esp32-arduino-libs/idf-release_v5.1-bd2b9390ef/esp32/include/ @/Users/dend/Library/Arduino15/packages/esp32/tools/esp32-arduino-libs/idf-release_v5.1-bd2b9390ef/esp32/flags/includes -I/Users/dend/Library/Arduino15/packages/esp32/tools/esp32-arduino-libs/idf-release_v5.1-bd2b9390ef/esp32/qio_qspi/include -I/Users/dend/Library/Arduino15/packages/esp32/hardware/esp32/3.0.2/cores/esp32 -I/Users/dend/Library/Arduino15/packages/esp32/hardware/esp32/3.0.2/variants/esp32 -I/Users/dend/Documents/Arduino/libraries/ArduinoJson/src -I/Users/dend/Library/Arduino15/packages/esp32/hardware/esp32/3.0.2/libraries/WiFi/src -I/Users/dend/Library/Arduino15/packages/esp32/hardware/esp32/3.0.2/libraries/Network/src -I/Users/dend/Documents/Arduino/libraries/ThingsBoard/src -I/Users/dend/Documents/Arduino/libraries/TBPubSubClient/src -I/Users/dend/Library/Arduino15/packages/esp32/hardware/esp32/3.0.2/libraries/Update/src -I/Users/dend/Documents/Arduino/libraries/PZEM004Tv30/src @/private/var/folders/m9/2fwf52qx0k3ckvpf2b1bxpww0000gn/T/arduino/sketches/FE6F8CCFBCCD2C326C2198546CD6C672/build_opt.h @/private/var/folders/m9/2fwf52qx0k3ckvpf2b1bxpww0000gn/T/arduino/sketches/FE6F8CCFBCCD2C326C2198546CD6C672/file_opts /private/var/folders/m9/2fwf52qx0k3ckvpf2b1bxpww0000gn/T/arduino/sketches/FE6F8CCFBCCD2C326C2198546CD6C672/sketch/read3Phase.ino.cpp -o /private/var/folders/m9/2fwf52qx0k3ckvpf2b1bxpww0000gn/T/arduino/sketches/FE6F8CCFBCCD2C326C2198546CD6C672/sketch/read3Phase.ino.cpp.o
In file included from /Users/dend/Documents/Arduino/libraries/ThingsBoard/src/ThingsBoard.h:12,
from /Users/dend/Documents/Arduino/3-phase-electricity-monitoring/read3Phase/read3Phase.ino:4:
/Users/dend/Documents/Arduino/libraries/TBPubSubClient/src/TBPubSubClient.h:92:7: error: redefinition of 'class PubSubClient'
92 | class PubSubClient : public Print {
| ^~~~~~~~~~~~
In file included from /Users/dend/Documents/Arduino/3-phase-electricity-monitoring/read3Phase/read3Phase.ino:2:
/Users/dend/Documents/Arduino/3-phase-electricity-monitoring/read3Phase/PubSubClient.h:92:7: note: previous definition of 'class PubSubClient'
92 | class PubSubClient : public Print {
| ^~~~~~~~~~~~

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants