I do use a .mm file, nice, however the part [](void* userData, const char* s) gives me a syntax error.. I'm not familiar with it, but: Expected '(' for function-style cast or type construction
I can get this error when I change "C++ Language Dialect" from the original GNU++20 (that was chosen by default) to C++98 / GNU++98. Peculiarly also when I change it to "Compiler Default" option (which presumably choses that old language dialect). With all other variants starting from C++11 it compiles fine.