Here is a copy from IDE indicating that the include header was not processed.
I had to deduct that from the
Atlas_Ver11_DDS:309: error: 'Rotary' does not name a type
I am not avd-gcc compiler expert, so could somebody point me to a parameter I could pass to the compiler to give me something more than the above message?
Apparently this #include <rotary.h> did not work.
This no biggie but, anything but the error message received would be more helpful.
The compiler/preprocessor/whatever only gives a warning if a header file can't be found and warnings are turned off by default.
I forget how to turn warnings on.
el_supremo:
The compiler/preprocessor/whatever only gives a warning if a header file can't be found and warnings are turned off by default.
I forget how to turn warnings on.
El Supremo
Thanks I'll Google for it. I can use all the help I can get, that must be pretty visible by now anyway!
Vaclav
For reasons I don't pretend to understand, the Arduino IDE invokes gcc with options that cause #include failures to be treated as a warning rather than an error, and to not log the warnings.
You can use the file / preferences to display the dialog where you can enable verbose output during compilation.
If the header file you're trying to include is part of a library and the library is installed correctly then you should see it listed under sketch / import library.
Usually, you need to name library header files using double quotes rather than chevrons, because this causes the compiler to include application directories in the search path.
PeterH:
For reasons I don't pretend to understand, the Arduino IDE invokes gcc with options that cause #include failures to be treated as a warning rather than an error, and to not log the warnings.
You can use the file / preferences to display the dialog where you can enable verbose output during compilation.
If the header file you're trying to include is part of a library and the library is installed correctly then you should see it listed under sketch / import library.
Usually, you need to name library header files using double quotes rather than chevrons, because this causes the compiler to include application directories in the search path.
I got the "verbose" enabled, but as you said if the header cannot be found that does not help.
I guess I was looking for an error type "cannot find the file ..." instead of " name not defined".
That leads me to speculate why so many users here have difficulty troubleshooting the problem when the error itself , as in this case, actually points to a problem way upstream.
Cheers
Vaclav
You should see "No such file or directory" errors now if it can't find a #included file.
Is the Rotary.h file provided by a library? If so, is the library listed under Sketch / Import library ... ?
Are you certain that the type/class Rotary is in fact declared in the header file you have included? Possible reasons why it might seem to be but actually not be, are that the copy of the rotary.h file the compiler is including is not the one you are looking at, or there are conditional compilations in the .h file which result in the declarations not actually being compiled.