LSM303 Sketch Errors

sketch_jan20b.ino: In function ‘void setup()’:
sketch_jan20b:40: error: ‘LSM303_CTRL_REG4_A’ was not declared in this scope
sketch_jan20b:48: error: ‘LSM303_CTRL_REG1_A’ was not declared in this scope
sketch_jan20b:52: error: ‘LSM303_CRA_REG_M’ was not declared in this scope
sketch_jan20b:54: error: ‘LSM303_CRB_REG_M’ was not declared in this scope
sketch_jan20b:56: error: ‘LSM303_MR_REG_M’ was not declared in this scope

Can you help me?
I try to add library and it is working but it give error.
What can I do?

Hello.

In your email you mentioned you were using code from:

github.com/mikeshub/Pololu_Open … en_IMU.ino

In the future, it would be less confusing for everyone reading this post to explain what code you were using.

It looks like Pololu_Open_IMU is not compatible with the latest LSM303 library. If you want to use to use Pololu_Open_IMU, you will have to download the older 1.4.4 library.

-Jon

Thank you very much:))))