Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Compiler is out of heap space when registering large amount of functions #329
I have about 5000 functions that i have to expose to lua, basically i wrote a generator to do that for me like that:
I tried splitting functions to separate .cpp files 500 in each and then it works, but is there other solution to that?
I have a similar issue, but I've worked around it by using the x64 toolset (this doesn't mean compiling an x64 binary, it just means that the compiler itself is the 64-bit version). This allows the compiler and linker to utilize more than 4GB of RAM.
There's multiple ways to use the x64 MSVC toolset, but the method I'm using is just setting the
You could also add the following under the
<PropertyGroup> <PreferredToolArchitecture>x64</PreferredToolArchitecture> </PropertyGroup>
Edit: I should also note that you should clean your solution after switching toolsets.