Compiler is out of heap space when registering large amount of functions #329
Comments
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. |
@OrfeasZ Now it takes 8gb but actually compiles. Thank you! |
@cafebabe0 Glad to be able to help :) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I have about 5000 functions that i have to expose to lua, basically i wrote a generator to do that for me like that:
When im trying to compile it it takes 4gb of memory and then it fails with

I tried splitting functions to separate .cpp files 500 in each and then it works, but is there other solution to that?
The text was updated successfully, but these errors were encountered: