C++ too large to compile or link in Visual C++

Visual C++ Fatal Error C1128

Please ensure you change the C++ compiler options to include:


and change the linker options to ensure:


The library should then build OK, but this will may take a while, even on a high spec PC.

If this does not work, it may also be possible to select only the top level elements that you require from the 'Select Elements for Code Generation' screen in the Wizard. Note: depeneing on how your schemas dependencies, other elements may still be generated if they are required, so this may not reduce the overall size.