Using eclipse and type 'byte'

I'm trying to figure out how to directly program the arduino but still incorporate some of the Arduino IDE libs when doing so. I've figured out how to add the 'libraries' path as well as the necessary AVR paths to a project so it can find the stuff the libraries are using, but I still have one small issue that I have a feeling, if I can figure out how to fix it, will help many similar issues in the future.

Eclipse is complaining about a particular example code I have which utilizes one of the ethernet modules using ethercard/EtherCard.h. They define the IP address using a type 'byte' which it appears is not a c++ type. As near as I was able to determine, this is specified in Arduino.h along with type 'boolean'

typedef uint8_t boolean;
typedef uint8_t byte;

So I added #include <Arduino.h> at the top of the file, but eclipse is still complaining "Type 'byte' could not be resolved"

What am I missing?

SW

Why use Eclipse to program the Arduino, and not just use the Arduino Software itself? A byte is an unsigned char, and instead of boolean, try just bool, or bit.

HazardsMind:
Why use Eclipse to program the Arduino, and not just use the Arduino Software itself?

That's kind of like asking "why use an SLR camera and telephoto lens when you can buy an autofocus one-click camera? There are benefits to getting into the internals if you know what you are doing. (such as making more streamlined code or customizing your application to the specific functionality you need, etc.)

HazardsMind:
A byte is an unsigned char, and instead of boolean, try just bool, or bit.

I haven't run into a problem with bool yet, but I'm sure fixing the byte problem (or learning how) will also fix anything I ran into with bool later on. I was able to get eclipse to stop complaining by adding the typedef line directly to the top of my file, but I'm not sure now if the complaining was a problem with eclipse not looking up the typedef in the Arduino.h or if it is a problem with the manner in which I'm including the file and/or specifying my paths in the project properties. (If I take the typedef comment out of my c++ file, eclipse starts complaining again even with the include line for Arduino.h -- I haven't tried a full compile as my machine at home is set up a little better to actually create AVR code and I only had a limited amount of time on lunch to make some minor modifications to my code)

Why not just replace the non-standard name byte with the standard name uint8_t?

If you've installed the eclipse plugin (jantje's) and have set the paths for the libraries etc you'll find it recognises byte. [disclaimer, I've got the abilities of an inebriated chimp, but even i managed to get lucky]

Paul, out of interest, is there a document anywhere showing how the arduino variable types map to the C++ variable types?