Sanguino A pin errors

I have just tried compiling a sketch for a Sanguino and got the following errors.
This Sketch uploaded fine to an Arduino broad ( mini pro).

' A0' Was not declared in this scope

( repeat for all analogue pins)

From this page I read this

The Sanguino has 24 normal digital pins, numbered 0-23. As with the Arduino, you can also use Analog pins as Digital pins. Digital pins 24-31 correspond to Analog pins 7-0. Its sort of backwards, but that means Analog 0 is Digital 31, and Analog 7 is Digital 24.

Does this mean instead of labeling the pin A0 I need to label it 31 ??

For the record I do not have a sanguino or '644 chip yet. But before I do I need to be able to compile the code for it.

For use as an analog pin it's just 0 - not A0.

But 0 is a digital pin?

try it as
value = analogRead(0);

I think the compiler is smart enough to know this is A0.

OK. that seems to compile. Thanks.

Not that I need to use the A's as D's but what then?

"Not that I need to use the A's as D's but what then? "

I don't follow your question ...
You had plans to use all the Analog inputs as analog inputs, yes?
That's what I understood from the opamp and resistors for the O2 sensors.

I am just wondering if you need to use an analogue pin as a digital pin then how would you do that?
Because if A0 is just called 0 and D0 is called 0 then you have two pins called 0 ans you are giving them the same command. How would the compiler know what pin you are referring to?

I dont need to do that but just wondering.

Digital pins are as defined in the pins_arduino.c file for Sanguino:

// On the Sanguino board, digital pins are also used
// for the analog output (software PWM).  Analog input
// pins are a separate set.

// ATMEL ATMEGA644P / SANGUINO
//
//                   +---\/---+
//  INT0 (D 0) PB0  1|        |40  PA0 (AI 0 / D31)
//  INT1 (D 1) PB1  2|        |39  PA1 (AI 1 / D30)
//  INT2 (D 2) PB2  3|        |38  PA2 (AI 2 / D29)
//   PWM (D 3) PB3  4|        |37  PA3 (AI 3 / D28)
//   PWM (D 4) PB4  5|        |36  PA4 (AI 4 / D27)
//  MOSI (D 5) PB5  6|        |35  PA5 (AI 5 / D26)
//  MISO (D 6) PB6  7|        |34  PA6 (AI 6 / D25)
//   SCK (D 7) PB7  8|        |33  PA7 (AI 7 / D24)
//             RST  9|        |32  AREF
//             VCC 10|        |31  GND 
//             GND 11|        |30  AVCC
//           XTAL2 12|        |29  PC7 (D 23)
//           XTAL1 13|        |28  PC6 (D 22)
//  RX0 (D 8)  PD0 14|        |27  PC5 (D 21) TDI
//  TX0 (D 9)  PD1 15|        |26  PC4 (D 20) TDO
//  RX1 (D 10) PD2 16|        |25  PC3 (D 19) TMS
//  TX1 (D 11) PD3 17|        |24  PC2 (D 18) TCK
//  PWM (D 12) PD4 18|        |23  PC1 (D 17) SDA
//  PWM (D 13) PD5 19|        |22  PC0 (D 16) SCL
//  PWM (D 14) PD6 20|        |21  PD7 (D 15) PWM
//                   +--------+
//

The next 2 sections define the order of the ports, and then the bits of the ports, for the digital assignments.
Not sure how the compiler keeps track of Analog vs Digital from there.