Dear bioluminescence,
M_PI is a constant with the value pi. It is defined in the math.h library. So you just have to add the line
#include<math.h>
Which version of OpenLB are you using? I cannot reproduce the error on version 1.3.1
Best regards
Robin