Code would not compile/link without errors, copy of code compiled/linked without errors #1691
Closed
3 tasks done
Labels
conclusion: duplicate
Has already been submitted
conclusion: off topic
Off topic for this repository
topic: CLI
Related to Arduino CLI
type: imperfection
Perceived defect in any part of project
Uh oh!
There was an error while loading. Please reload this page.
Describe the problem
Using IDE 2.0.0 (or 2.0.1?) on a Windows 11 machine. Had a large program that I broke into multiple files, with corresponding
.h
files, extern declarations, etx. Code would compile but fail during linking, giving'multiple definition of'
errors (error messages pasted below). Machine was powered-down/rebooted without changing the problem.Today I copied the sketch folder and renamed it (along with the
.ino
file) so that I could experiment with changing the code around to see what would fix the error. When I started the IDE, I was notified of a new version of the IDE (2.0.2), so I did the update. When I opened the new copy of my code, it compiled and linked without error. But when I opened the original (identical) version, it still gives me errors.To reproduce
Not sure how to reproduce this error, since a copy of my code compiles/links without error.
Expected behavior
Code should compile/link consistently.
Arduino IDE version
2.0.2
Operating system
Windows
Operating system version
10.0.22621 Build 22621
Additional context
No response
Issue checklist
The text was updated successfully, but these errors were encountered: