Unknown Type Name error
My code is getting a Unknown Type Name error even though the code file is including a header file that has the type definition in it. The error is in a .h file. It includes another .h file that includes another that has the definition.
I’ve been trying to figure out what is going on with no luck. The definition is a couple of .h files deep but that should not be a problem should it? I turned on verbose hoping to get more info about the problem but no luck there either.
Any help would be appreciated.
++CODE++
from usbh_MIDI.h
- include “usbh_core.h”
..
..
extern USBH_ClassTypeDef  MIDI_Class; (line with error)
From usbh_core.h:
- include “usbh_def.h”
From usbh_def.h:
/* USB Host Class structure */
typedef struct
{
  const char          *Name;
  uint8_t              ClassCode;
  USBH_StatusTypeDef  (*Init)        (struct _USBH_HandleTypeDef *phost);
  USBH_StatusTypeDef  (*DeInit)      (struct _USBH_HandleTypeDef *phost);
  USBH_StatusTypeDef  (*Requests)    (struct _USBH_HandleTypeDef *phost);
  USBH_StatusTypeDef  (*BgndProcess) (struct _USBH_HandleTypeDef *phost);
  USBH_StatusTypeDef  (*SOFProcess) (struct _USBH_HandleTypeDef *phost);
  void*                pData;
} USBH_ClassTypeDef;



