I'm trying to compile a simple C++ file that does:
static const unsigned char content[] =
{
// 29MB of data written as "0x1E, 0x83, 0x3E, 0x86, 0xC8, 0x80, ...". 10 values per line
};
The file to compile has almost 3M lines and is ~200Mo
This is an output from a ressources management system, trying to embed in my binary a 29Mo ressource file (let's assume it's a video file) for later use at runtime.
When I compile, VS2015 reports:
fatal error C1060: compiler is out of heap space
Is there any alternative to that (use something else than a static const unsigned char)? Make the file have less lines but more characters per line? ...
Note: I tried /Zm1000 option without success.