Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
今天我再次收到错误c3859,编译器建议我使用/Zm140。
我的问题是:如何告诉 Visual Studio 在需要时自动增加此内存?甚至可能吗?
如果不是 - 为什么不呢?既然编译器可以准确地告诉我它需要多少内存——为什么不简单地自己分配呢?
该标志的存在是有原因的:编译器只能事后确定如果需要预先需要多少内存。