-
/heap: linker option
I want to allocate the heap size in Visual C++ using Project > Settings > Link tab. It seems like it is only possible to allocate the stack size using this screen. There should be a way to add /heap: as a linker option but it alludes me. I know this question was asked a long time ago but there was no response.
-
Re: /heap: linker option
You add linker options in the "Project Options" entry box under the link settings (same for cl options under the C/C++ tab)
You can also use editbin.exe for setting the heap size.
And I should add you can also #pragma it in
#pragma comment(linker,"/HEAP:reservesize,commitsize")