Are you using Visual Studio? And which version? It works fine for me with the 2017 version, so maybe it doesn't work with some of the earlier versions of the compiler bundled with Visual Studio. I had encountered similar errors before and basically it's saying that the file or some if its contents are too large, so this could probably be fixed by splitting the CyInfoInterface3.cpp file in two parts. But I would first try to use the 2017 version of Visual Studio.