I recently got the following error when trying to compile with gcc:
error: missing binary operator before token \"(\"
Web and SO
You get this error sometimes if you have -fno-operator-names in your compiler flags. I suffered from the exact error while building json and this solved it.
-fno-operator-names
json