avr-gcc compiler header file error

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.

Arduino: 1.5.4 (Windows XP), Board: "Arduino Uno"

D:\Program Files\Arduino\hardware\tools\avr\bin\avr-g++ -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -MMD -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=154 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -ID:\Program Files\Arduino\hardware\arduino\avr\cores\arduino -ID:\Program Files\Arduino\hardware\arduino\avr\variants\standard -ID:\Program Files\Arduino\libraries\LiquidCrystal\src -ID:\Program Files\Arduino\libraries\EEPROM\src -ID:\Program Files\Arduino\libraries\EEPROM\arch\avr -ID:\Program Files\Arduino\hardware\arduino\avr\libraries\Wire -ID:\Program Files\Arduino\libraries\SoftwareSerial\src -ID:\Program Files\Arduino\libraries\SoftwareSerial\arch\avr C:\DOCUME~1\v\LOCALS~1\Temp\build3505311557873066796.tmp\Atlas_Ver11_DDS.cpp -o C:\DOCUME~1\v\LOCALS~1\Temp\build3505311557873066796.tmp\Atlas_Ver11_DDS.cpp.o

Atlas_Ver11_DDS:309: error: 'Rotary' does not name a type

How about:

#include <Rotary.h>

and have you installed the Rotary library (whatever that is)?

Pete

And have you read the OP?
That is NOT what I asked for.
Thanks for your contribution.
Vaclav

And have you read the section header?

For problems with Arduino itself, NOT your project

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

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.

you could go get the 1.5.4 IDE and then modify the platform.txt file compiler flags
so that warnings are turned on.

Just change the c and cpp compiler flags in the platform.txt file.
Change the -w (which eliminates warnings) to -Wall
so you can see all the warnings.

--- bill