• 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 5 years ago
Question Tags: Error compiling for board DOIT ESP32 DEVKIT V1.
4 Answers
0 Vote Up Vote Down
Sara Santos Staff answered 5 years 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 5 years 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 5 years 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 5 years 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] Learn Raspberry Pi Pico/Pico W with MicroPython eBook – Version 1.2 May 26, 2025
  • [New Edition] Build ESP32-CAM Projects eBook – 2nd Edition April 16, 2025

You must be logged in to view this content.

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

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

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.