Skip to content

IDE does not report missing #include files any more [imported] #1057

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

Closed
cmaglie opened this issue Nov 15, 2012 · 1 comment
Closed

IDE does not report missing #include files any more [imported] #1057

cmaglie opened this issue Nov 15, 2012 · 1 comment
Labels
Type: Duplicate Another item already exists for this topic

Comments

@cmaglie
Copy link
Member

cmaglie commented Nov 15, 2012

This is Issue 1057 moved from a Google Code project.
Added by 2012-09-30T21:11:11.000Z by [email protected].
Please review that bug for more context and additional comments, but update this bug.

Original labels: Type-Defect, Priority-Medium

Original description

What steps will reproduce the problem?

  1. Make a sketch which includes a non-existent include file.
  2. Compile it.

What is the expected output? What do you see instead?

The missing include file is not reported as an error, however flow-on errors are.

(Apologies if this is already reported, however searching outstanding bugs for the word "include" or "error" return practically every issue).

I've noticed recently that if you don't incorporate a library (eg. you haven't restarted the IDE) or otherwise misspell an "#include" directive that the error about the missing file is suppressed. This is not at all helpful, as you then start wondering why something like SPI "is not declared".

What version of the Arduino software are you using? On what operating
system? Which Arduino board are you using?

IDE 1.0.1.
OS/X
Board not relevant.

Please provide any additional information below.

Example:

include <SPIFOO.h>

void setup()
{
SPI.begin ();
}

void loop()
{
}

With verbose compiling on:

sketch_oct01a.cpp:1:20: warning: SPIFOO.h: No such file or directory

With verbose compiling off, that line is omitted from the IDE output. You only get:

sketch_oct01a.cpp: In function 'void setup()':
sketch_oct01a:3: error: 'SPI' was not declared in this scope

@ffissore
Copy link
Contributor

This is caused by the -w flag on the compiler command line, which keeps warnings from being reported. Closing as duplicate of #1728

@per1234 per1234 added the Type: Duplicate Another item already exists for this topic label Jul 1, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Duplicate Another item already exists for this topic
Projects
None yet
Development

No branches or pull requests

3 participants