Hello kh_model.
Sorry to delude you, but PellesC is a C compiler, not a C++ compiler. And it will never be...
Said that the good news, your code is not C++, but C code, with some c++ alteration
. Simply changing file extension from
.cpp to
.c, and fixing the C++ contamination, you'll be able to compile it with PellesC.
Get the attached project with the correct file.