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
If log.h from the log_system example is included before sl_bluetooth.h, gcc complains about two forward declarations on it. log.h needs it to define two forward declarations on it. If a file (like app.c) includes sl_bluetooth.h, it masks this error and the project compiles.
Use case / test scenario
Reference environment
GCC 10.2 Bluetooth SDK 3.2.3
Simplicity Studio version: 5.2.3.1
The issue reproducible with SDK sample application.
To Reproduce
Steps to reproduce the behavior:
Import the log_system example to SS5
Open app.c
Move the line #include "log.h" above the line including sl_bluetooth.h.
Compile the project
Expected behavior
The project should compile independently of the location of the #include line.
Actual behavior
The project won't compile if log.h is inlcuded before sl_bluetooth.h
Additional context
I have set clang-formatter to rearrange my includes by alphabetical order and that's how I found out.
The text was updated successfully, but these errors were encountered:
Summary
log.h
from thelog_system
example is included beforesl_bluetooth.h
, gcc complains about two forward declarations on it.log.h
needs it to define two forward declarations on it. If a file (likeapp.c
) includessl_bluetooth.h
, it masks this error and the project compiles.To Reproduce
Steps to reproduce the behavior:
log_system
example to SS5app.c
#include "log.h"
above the line includingsl_bluetooth.h
.Expected behavior
The project should compile independently of the location of the
#include
line.Actual behavior
The project won't compile if
log.h
is inlcuded beforesl_bluetooth.h
Additional context
I have set clang-formatter to rearrange my includes by alphabetical order and that's how I found out.
The text was updated successfully, but these errors were encountered: