X-CUBE-USB-PD examples compiles errors.
When I am trying to compile project Consumer_DRP_RTOS from C:\xx\X-CUBE-USB-PD-master\STM32CubeExpansion_USBPD_F0\Projects\STM32F072RB-Nucleo\Applications\USB_PD
I get a lot of errors. I managed to eliminate some of them by adding header files to the appropriate places. And so at the moment I have errors of the form (see the image below) .
A project search indicates that function a is not present. There are only
USBPD_StatusTypeDef USBPD_DPM_InitOS(void)and
USBPD_StatusTypeDef USBPD_DPM_InitCore(void)but htis block of code is not compilling:
/* Initialize the Device Policy Manager */
if( USBPD_ERROR == USBPD_DPM_Init())
{
/* error the RTOS can't be started */
while(1);
}And the question arises: do I do everything correctly (although it would seem-I opened the project, compiled it, and study the work, but in fact there were typos in several places like toogle instead of toggle).
Also I tryed to compile other project and got next result:

UPD 1.
Ok, I solved the problem with
USBPD_ERROR == USBPD_DPM_Init()it is need to be replaced by
USBPD_DPM_InitCore()but the other undefined symbols are very strange, because search in project tells me, that there is no one string with such veriables. And interesting one more thing: there is no one string in documentation about X-CUBE-USB-PD where are functions USBPD_DPM_InitOS(void) & USBPD_DPM_InitCore(void) are mentioned. For example UM2063 operates only with USBPD_DPM_Init().
Went to investigate further.