Error new/ambiguate declaration

Hello !

I get the following message error. I have only changed the output variable type of the function. I have now idea what arduino is telling me.

Arduino: 1.6.4 (Linux), Board: "Arduino Mega or Mega 2560, ATmega2560 (Mega 2560)"

In file included from motor_driver_config.h:13:0,
                 from two_wheel_base.ino:52:
md49_config.h: In function 'int32_t get_left_encoder()':
md49_config.h:58: error: new declaration 'int32_t get_left_encoder()'
 int32_t get_left_encoder()
                          ^
In file included from two_wheel_base.ino:52:0:
motor_driver_config.h:7: error: ambiguates old declaration 'uint32_t get_left_encoder()'
 uint32_t get_left_encoder();
          ^
In file included from motor_driver_config.h:13:0,
                 from two_wheel_base.ino:52:
md49_config.h: In function 'int32_t get_right_encoder()':
md49_config.h:84: error: new declaration 'int32_t get_right_encoder()'
 int32_t get_right_encoder()
                           ^
In file included from two_wheel_base.ino:52:0:
motor_driver_config.h:8: error: ambiguates old declaration 'uint32_t get_right_encoder()'
 uint32_t get_right_encoder();
          ^
new declaration 'int32_t get_left_encoder()'

Does anyone understands arduino?
Thanks a lot!

Should of posted your code.

But it looks like you have a header file prototype returning a unsigned int, and the .ino returning a signed int, so you'll either need to change both to use either a signed our a unsigned

Thanks, it was exactly that.
Awesome, it finally compiles without any error!!!

Pandaii:
Thanks, it was exactly that.
Awesome, it finally compiles without any error!!!

Hi, how can you fixed the problem ?