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

Sketch name conflicts #4199

Closed
aweatherguy opened this issue Nov 21, 2015 · 1 comment
Closed

Sketch name conflicts #4199

aweatherguy opened this issue Nov 21, 2015 · 1 comment
Milestone

Comments

@aweatherguy
Copy link

Here's a situation that took me a while to fix and it would be something that perhaps the Arduino build process could detect and warn folks about. This can be reproduced in Win7 with the Arduino IDE 1.7.7

I have a sketch file named (for example) runthehdwr.ino

I also have a C++ class named "RunTheHdwr" in the sketch directory defined in these two files:
RunTheHdwr.h
RunTheHdwr.cpp

The problem is that when I try to build the sketch it does not compile runthehdwr.ino and I wind up with unresolved symbols for setup() and main().

Hard to find and easy to fix (rename the sketch or the class). I don't think there's anything wrong with saying this is not a supported thing to do. However, it seems to me that the IDE could detect this easily and tell the user what's wrong so they don't spend too much time trying to figure out why the sketch isn't being compiled.

@ffissore
Copy link
Contributor

There is no version 1.7.7. The latest stable version of the IDE is 1.6.6, available from the download page. You may have been fooled by a fork of the IDE which has been created months ago and never updated. You can find more info here and here.

Can you please try the latest IDE and report if the issue persists? https://www.arduino.cc/en/Main/Software

@ffissore ffissore added the Waiting for feedback More information must be provided before we can proceed label Nov 23, 2015
@ffissore ffissore added this to the Release 1.6.7 milestone Nov 23, 2015
@ffissore ffissore self-assigned this Nov 23, 2015
@cmaglie cmaglie removed the Waiting for feedback More information must be provided before we can proceed label Oct 18, 2016
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

3 participants