You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to build this library in Zephyr. I am getting compiler errors for implicit declaration of function 'INT8_C', UINT8_C, UINT16_C. These are standard macros from stdint.h. I can build the same code in other platforms but not in Zephyr. I am not sure whether it is a issue with my setup. Please help.
To Reproduce
Steps to reproduce the behavior:
Use the attached project
Create an alias in device tree called i2c0. I am using a custom board
west build -b
Get the below warnings which ultimately lead to errors
Impact
showstopper
Logs and console output
In file included from ../src/bmp3.h:47,
from ../src/bmp3.c:41:
../src/bmp3.c: In function 'bmp3_init':
../src/bmp3_defs.h:280:49: warning: implicit declaration of function 'INT8_C'; did you mean 'INT8_MAX'? [-Wimplicit-function-declaration]
280 | #define BMP3_OK INT8_C(0)
| ^~~~~~
../src/bmp3.c:708:17: note: in expansion of macro 'BMP3_OK'
708 | if (rslt == BMP3_OK)
| ^~~~~~~
../src/bmp3_defs.h:167:49: warning: implicit declaration of function 'UINT8_C'; did you mean 'UINT8_MAX'? [-Wimplicit-function-declaration]
167 | #define BMP3_REG_CHIP_ID UINT8_C(0x00)
| ^~~~~~~
Environment (please complete the following information):
Hello,
I am trying to build this library in Zephyr. I am getting compiler errors for
implicit declaration of function 'INT8_C', UINT8_C, UINT16_C
. These are standard macros fromstdint.h
. I can build the same code in other platforms but not in Zephyr. I am not sure whether it is a issue with my setup. Please help.To Reproduce
Steps to reproduce the behavior:
Impact
showstopper
Logs and console output
Environment (please complete the following information):
Attachment
bmp3_zephyr.zip
Thanks
The text was updated successfully, but these errors were encountered: