• Skip to main content
  • Skip to primary sidebar

RNTLab.com

The Ultimate Shortcut to Learn Electronics and Programming with Open Source Hardware and Software

  • Courses
  • Forum
    • Forum
    • Ask Question
  • Shop
  • Account
  • Blog
  • Login

ESP32 compiling problem

Q&A Forum › Category: ESP32 › ESP32 compiling problem
0 Vote Up Vote Down
Ron asked 11 months ago
Question Tags: Error compiling for board DOIT ESP32 DEVKIT V1.
4 Answers
0 Vote Up Vote Down
Sara Santos Staff answered 11 months ago

Hi Ron.
What’s exactly the error you’re getting?
Can you provide more details? Otherwise, it is very difficult to find out what might be wrong.
Regards,
Sara

0 Vote Up Vote Down
Ron answered 11 months ago

OneWire.cpp:(.text._ZN7OneWire11check_crc16EPKhtS1_t+0x0): multiple definition of `OneWire::check_crc16(unsigned char const*, unsigned short, unsigned char const*, unsigned short)’
C:\Users\rktut\AppData\Local\Temp\arduino_build_392761\libraries\OneWire\OneWire.cpp.o:OneWire.cpp:(.text._ZN7OneWire11check_crc16EPKhtS1_t+0x0): first defined here
collect2.exe: error: ld returned 1 exit status
Using library OneWire at version 2.3.4 in folder: C:\Users\rktut\OneDrive\Documents\Arduino\libraries\OneWire
Using library DallasTemperature at version 3.7.9 in folder: C:\Users\rktut\OneDrive\Documents\Arduino\libraries\DallasTemperature
exit status 1
Error compiling for board DOIT ESP32 DEVKIT V1.

0 Vote Up Vote Down
Sara Santos Staff answered 11 months ago

Hi Ron.

That error means that you have the OneWire library installed two times.

In this directory: C:\Users\rktut\AppData\Local\Temp\arduino_build_392761\libraries\OneWire\OneWire.cpp

and this one
C:\Users\rktut\OneDrive\Documents\Arduino\libraries\OneWire

Remove the library from the
C:\Users\rktut\AppData\Local\Temp\arduino_build_392761\libraries\OneWire\OneWire.cpp directory.

Regards,
Sara

0 Vote Up Vote Down
Ron answered 11 months ago

THANK  YOU!!   Problem solved.
Ron

Primary Sidebar

Login to Ask or Answer Questions

This Forum is private and it’s only available for members enrolled in our Courses.

Login »

Latest Course Updates

  • [eBook Updated] Download Build Web Servers with ESP32 and ESP8266 (2nd Edition) February 8, 2021
  • [eBook Released] Build Web Servers with ESP32 and ESP8266 (version 1.0) October 27, 2020

You must be logged in to view this content.

Contact Support - Refunds - Privacy - Terms - MakerAdvisor.com - Member Login

Copyright © 2013-2021 · RandomNerdTutorials.com · All Rights Reserved