Connecting to Xively code, getting error

I am checking the code to connect to Xively.

// Define the strings for our datastream IDs
XivelyDatastream datastreams = {
XivelyDatastream(sensorID, strlen(sensorID), DATASTREAM_FLOAT),
XivelyDatastream(ledID, strlen(ledID), DATASTREAM_FLOAT),
};

When I check the code for this script I get the message "'Xively Datastream; does not name a type" on the red code above.

I am using the code from the Xively examples, and the libraries, for the Arduino.

Does anyone know why this message is coming up?

Thanks.

Does anyone know why this message is coming up?

Most likely because you haven't installed the library correctly/in the correct place.

A link to the examples/library?