pi@raspberrypi ~/Downloads $ sudo gcc -lm -std=c99 pifm.c
pifm.c:171:1: error: unknown type name ‘class’
pifm.c:171:17: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
pifm.c:177:1: error: unknown type name ‘class’
pifm.c:177:17: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘:’ token
pifm.c:255:1: error: unknown type name ‘class’
pifm.c:255:14: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘:’ token
pifm.c:283:1: error: unknown type name ‘class’
pifm.c:283:14: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘:’ token
pifm.c:346:1: error: unknown type name ‘class’
pifm.c:346:15: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘:’ token
pifm.c:355:1: error: unknown type name ‘class’
pifm.c:355:11: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘:’ token
pifm.c:369:1: error: unknown type name ‘class’
pifm.c:369:21: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘:’ token
pifm.c:414:1: error: unknown type name ‘class’
pifm.c:414:17: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘:’ token
pifm.c:452:1: error: unknown type name ‘class’
pifm.c:452:22: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘:’ token
pifm.c:524:48: error: unknown type name ‘bool’
pifm.c: In function ‘setupDMA’:
pifm.c:621:4: warning: implicit declaration of function ‘usleep’ [-Wimplicit-function-declaration]
pifm.c: In function ‘main’:
pifm.c:652:7: warning: implicit declaration of function ‘playWav’ [-Wimplicit-function-declaration]