Compiling errors!!

Can Any one help me i am getting these errors when trying to compile my code

C:\Program Files (x86)\Arduino\hardware\arduino\cores\arduino\Print.cpp: In member function ‘size_t Print::printFloat(double, uint8_t)’:
C:\Program Files (x86)\Arduino\hardware\arduino\cores\arduino\Print.cpp:229: error: ‘isnan’ was not declared in this scope
C:\Program Files (x86)\Arduino\hardware\arduino\cores\arduino\Print.cpp:230: error: ‘isinf’ was not declared in this scope

template<class T> inline Print &operator <<(Print &obj, T arg) {obj.print(arg); return obj;}

// Don't use pin 0 & 1 else serial monitor wont work
const byte pinArray[] = {2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66};

//sizeof(pinArray) returns the size of the array in bytes not elements so if your using a byte array it will match the number of elements
//but if it was an int/long array then the sizeof will be 2x/4x times respectfully the number of elements in the array as int uses 2 bytes to store and long uses 4 bytes.
//Print the sizeof(pinArray)  value and then change the array type to int/long and print it again and you will see.
const byte pinArraySize = sizeof(pinArray) / sizeof(pinArray[0]);

void setup() {
  Serial.begin(9600);
}

void loop() {

  for (byte a = 0; a < pinArraySize - 1; a++) {   // Loop from start to penultimate entry of array
    pinMode(pinArray[a], OUTPUT);                 // Set pin to output
    digitalWrite(pinArray[a], LOW);               // Set it low
    Serial << "Pin " << pinArray[a] << " to...\r\n";


    for (byte b = a + 1; b < pinArraySize; b++) { // Loop from test pin + 1 to end of array
      pinMode(pinArray[b], INPUT_PULLUP);         // Set pin to input with pullup to stop floating pin errors
      Serial << "\tPin " << pinArray[b] << " = ";


      if (digitalRead(pinArray[b]) == LOW && !shortedOnPcb(pinArray[a], pinArray[b])) {     // Has the pin been pulled low by a short
        Serial.println(" ****FAIL****"); // Print in a fail if pin is low
      }
      else {
        Serial.println("PASS");         //  Print a pass for pins that 
      }

      pinMode(pinArray[b], INPUT);                // Turn off pullup resistor
    }
    pinMode(pinArray[a], INPUT);                  // Set back to input

  }
  while (1) {}; // Loop forever
}

boolean shortedOnPcb(byte outputPin, byte inputPin) {

  switch (outputPin) {

    case 9:
      return (inputPin == 10);
      break;
      
    case 43:
      return (inputPin == 49);
      break;
  }
  return false;

}

Compiles fine for me. What OS and what version of Arduino IDE? I use Mac OS X 10.9 and Arduino 1.0.5

I would get rid of the Serial << stuff.

Where did you get that version of Print from ?

It obviously is trying to use the isnan and isinf functions, and can’t find them. Those are functions which will tell you if a particular float or double number is actual a valid number, on NaN, or infinity. I don’t know if these functions work on, or exist for, the arduino.

It worked fine 2 weeks ago, but it seemed to develop a fault when i went to use the code today. I'm using windows 7

deanjames: It worked fine 2 weeks ago, but it seemed to develop a fault when i went to use the code today. I'm using windows 7

Try re-installing Arduino 1.0.5. That should fix your problem if your installation got damaged. Don't worry, it wont delete your sketches or third-party libraries.

But of course you've backed them up anyway, needless to say...