Your file is a .c which gcc thinks is a C file Either rename it or compile with g++, see the manual Also, why are you defining all those macros? Don't do that
Your file is a .c which gcc thinks is a C file Either rename it or compile with g++, see the manual Also, why are you defining all those macros? Don't do that