|
-
October 13th, 2004, 03:48 PM
#1
/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.
-
October 13th, 2004, 03:58 PM
#2
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")
Last edited by Mick; October 13th, 2004 at 04:01 PM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|