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 tried to build a simple ble advertiser application in apps/advertiser and got the error related to implicit declaration for the function and type cast of a variable.
Here is what my target looks like.
The error when trying to build the application is as follows. For me the application worked when I did some hacks by commenting the code that throws error.
Error: repos/apache-mynewt-core/sys/log/full/src/log.c: In function 'log_module_get_name':
repos/apache-mynewt-core/sys/log/full/src/log.c:236:12: error: implicit declaration of function 'logcfg_log_module_name' [-Werror=implicit-function-declaration]
236 | name = logcfg_log_module_name(module);
| ^~~~~~~~~~~~~~~~~~~~~~
repos/apache-mynewt-core/sys/log/full/src/log.c:236:10: error: assignment to 'const char *' from 'int' makes pointer from integer without a cast [-Werror=int-conversion]
236 | name = logcfg_log_module_name(module);
| ^
cc1: all warnings being treated as errors
I tried to build a simple ble advertiser application in apps/advertiser and got the error related to implicit declaration for the function and type cast of a variable.
Here is what my target looks like.
The error when trying to build the application is as follows. For me the application worked when I did some hacks by commenting the code that throws error.
GCC version.
OS
Linux mint 64-bit
The text was updated successfully, but these errors were encountered: