Expected type-specifier before ‘ofApp’

sometimes get this error when compiling on Raspberry PI:

/home/pi/openFrameworks/apps/myApps/test/src/main.cpp: In function ‘int main()’:
/home/pi/openFrameworks/apps/myApps/test/src/main.cpp:40:19: error: expected type-specifier before ‘ofApp’
ofRunApp( new ofApp());
^

I thought my main.cpp was corrupted but it seems fine.

empty examples compile ok, and all the OF examples I’ve tried are fine. my app also compiles look on OSX.

Tried using the projectGenerator on RPI but that in itself is a complete non-starter, despite following the instructions…

Any ideas welcome …

thx.