I encountered the same situation with other standard applications, such as app_usb_aud_xk_316_mc. What am I doing wrong?
$ xmake all
Building configuration 1AMi2o2xxxxxx
Checking build modules
Using build modules: lib_xua lib_i2c
Analyzing usb_mixer.cpp
D:/XMOS/proj/lib_xua/host_usb_mixer_control/usb_mixer.cpp:155:1: warning: control reaches end of non-void function
[-Wreturn-type]
}
^
D:/XMOS/proj/lib_xua/host_usb_mixer_control/usb_mixer.cpp:180:1: warning: control reaches end of non-void function
[-Wreturn-type]
}
^
D:/XMOS/proj/lib_xua/host_usb_mixer_control/usb_mixer.cpp:203:1: warning: control reaches end of non-void function
[-Wreturn-type]
}
^
D:/XMOS/proj/lib_xua/host_usb_mixer_control/usb_mixer.cpp:347:17: error: unknown type name 'char_style'
char_style mixer_input_name[USB_MIXER_MAX_NAME_LEN];
^
D:/XMOS/proj/lib_xua/host_usb_mixer_control/usb_mixer.cpp:448:19: warning: unused variable 'bRequest'
[-Wunused-variable]
unsigned char bRequest = CUR;
^
D:/XMOS/proj/lib_xua/host_usb_mixer_control/usb_mixer.cpp:612:13: error: unknown type name 'char_style'
char_style mixer_output_name[USB_MIXER_MAX_NAME_LEN];
^
D:/XMOS/proj/lib_xua/host_usb_mixer_control/usb_mixer.cpp:698:5: error: expected expression
)
^
D:/XMOS/proj/lib_xua/host_usb_mixer_control/usb_mixer.cpp:700:9: error: use of undeclared identifier 'devh'
devh = 0;
^
D:/XMOS/proj/lib_xua/host_usb_mixer_control/usb_mixer.cpp:774:12: error: use of undeclared identifier 'devh'
if(devh)
^
D:/XMOS/proj/lib_xua/host_usb_mixer_control/usb_mixer.cpp:798:12: error: use of undeclared identifier 'devh'
return devh ? 0 : -1;
^
D:/XMOS/proj/lib_xua/host_usb_mixer_control/usb_mixer.cpp:820:9: error: expected expression
)
^
D:/XMOS/proj/lib_xua/host_usb_mixer_control/usb_mixer.cpp:909:14: warning: unused variable 'bRequest'
[-Wunused-variable]
unsigned bRequest = CUR;
^
D:/XMOS/proj/lib_xua/host_usb_mixer_control/usb_mixer.cpp:910:14: warning: unused variable 'cs' [-Wunused-variable]
unsigned cs = 0;
^
D:/XMOS/proj/lib_xua/host_usb_mixer_control/usb_mixer.cpp:911:14: warning: unused variable 'cn' [-Wunused-variable]
unsigned cn = usb_mixers->usb_mixSel[mixer].id;
^
7 warnings and 7 errors generated.
xmake[2]: *** [.build_1AMi2o2xxxxxx/_l_xua/host_usb_mixer_control/usb_mixer.cpp.pca.xml.decouple] Error 1
xmake[1]: *** [analyze] Error 2
xmake: *** [1AMi2o2xxxxxx.all] Error 2