west build -b custom_nrf52832
-- west build: generating a build system
...
../src/bt_comm.c: In function 'connected':
../src/bt_comm.c:61:13: error: invalid use of undefined type 'struct bt_conn'
61 | if (conn->role == BT_CONN_ROLE_CENTRAL) {
| ^~
../src/bt_comm.c:63:20: error: invalid use of undefined type 'struct bt_conn'
63 | } else if (conn->role == BT_CONN_ROLE_PERIPHERAL) {
| ^~
[22/256] Building C object CMakeFiles/app.dir/src/gpio.c.obj
ninja: build stopped: subcommand failed.
FATAL ERROR: command exited with status 1: /home/andyueng/ncs/toolchains/v2.3.0/usr/local/bin/cmake --build /home/andyueng/ncs/v2.3.0/nrf/samples/minimal_log_nus/build