ok, I'm a noob. I'm not ashamed to say it.
So I'm programming along and then I hit shift+F10. I sit back and watch the compiler output; I take it as my PC saying, "Oooh yeah, right there. Wow, you're such a natural...how many compilers have you been with?"
Then all of a sudden, bam:
Error 43 Vacuous type for variable 'ovation'
make: Error code 2
What is a vacuous type? Why is the code below considered a vacuous type? From the little bit of information I found, this seems to be saying: "The variable type is has not yet been defined, and therefore has no set structure or size. This is not allowed; UBYTE me."
here's where the type is declared in my_type.h:
Code:
typedef unsigned char UBYTE; /* unsigned 8 bit byte */
and here's how it's referenced:
Code:
typedef struct {
/* Array of hex values that will be sent to a USB device */
const UBYTE ovation [] =
{
0x55, 0x53, 0x42, 0x43, /* Bytes 0..3 */
0xB0, 0x4C, 0x36, 0x87, /* Bytes 4..7 */
0x24, 0x00, 0x00, 0x00, /* Bytes 8..11 */
0x80, 0x00, 0x06, 0x12, /* Bytes 12..15 */
0x00, 0x00, 0x00, 0x24, /* Bytes 16..19 */
0x00, 0x00, 0x00, 0x00, /* Bytes 20..23 */
0x00, 0x00, 0x00, 0x00, /* Bytes 24..27 */
0x00, 0x00, 0x00, 0x00, /* Bytes 28..31 */
};
} EJECT_CMD;
compiler: Diab D-CC ver 4.3b
OS: winXPsp2