pololu/wixel-sdk — Issue #1: usb_cdc_acm.c structs
Author: alexanderhiam
Created: 2012-02-18 19:49:55+00:00
State: open

As of 2/16/12 the usb_cdc_acm.c library cannot compile on Linux Mint 12 64-bit with SDCC #5416 (Feb 3 2010) (that's all 'sdcc --version' gives me).
There are multiple structs defined in the usb.h library header in the form:

typedef struct STRUCT_NAME
{
...
} STRUCT_NAME;

usb_cdc_acm.c attempts to use the types 'struct STRUCT_NAME', when it should just use 'STRUCT_NAME'. It compiles without trouble after changing all occurrences.
It may be that it would compile fine with a current version of SDCC (I haven't tried yet), but the version I have is the one currently in the Apt repositories, so I figure it's the version that most Mint/Ubuntu users would have.