3-axis-compass : sample code doesn't work

Hi,

I’ve downloaded the 3-axis-Compass example. But When I test it in the arduino program…
It returns :

compass_Example:39: error: variable or field 'Output' declared void
compass_Example:39: error: 'MagnetometerRaw' was not declared in this scope
compass_Example:39: error: 'MagnetometerScaled' was not declared in this scope
compass_Example:39: error: expected primary-expression before 'float'
compass_Example:39: error: expected primary-expression before 'float'
compass_Example:36: error: 'HMC5883L' does not name a type
compass_Example.ino: In function 'void setup()':
compass_Example:50: error: 'compass' was not declared in this scope
compass_Example:50: error: 'HMC5883L' was not declared in this scope
compass_Example:58: error: 'Measurement_Continuous' was not declared in this scope
compass_Example.ino: In function 'void loop()':
compass_Example:67: error: 'MagnetometerRaw' was not declared in this scope
compass_Example:67: error: expected `;' before 'raw'
compass_Example:69: error: 'MagnetometerScaled' was not declared in this scope
compass_Example:69: error: expected `;' before 'scaled'
compass_Example:72: error: 'scaled' was not declared in this scope
compass_Example:96: error: 'raw' was not declared in this scope
compass_Example:96: error: 'Output' was not declared in this scope
compass_Example.ino: At global scope:
compass_Example:106: error: variable or field 'Output' declared void
compass_Example:106: error: 'MagnetometerRaw' was not declared in this scope
compass_Example:106: error: 'MagnetometerScaled' was not declared in this scope
compass_Example:106: error: expected primary-expression before 'float'
compass_Example:106: error: expected primary-expression before 'float'

I’m new to arduino language, if someone could explain to me why the example code from seed returns this error it would be realy nice. I’ve allready success whith the grove I²C barometer and temperature sensor whithout any problem.

Thanks for help

welcome to Arduino world!!
you can download the demo code, and extract it to …\arduino-1.0.1-windows\arduino-1.0.1\libraries . then it will works fine~
just try it~ cheers :laughing: