如何在visual studio中设置编译标志/bigobj?

我有一个包含巨大数组的 cpp 文件.

I have a cpp file that contains a huge array.

我收到一个致命错误(超出目标文件格式限制)和使用标志/bigobj 进行编译的建议

I get a fatal error (exceeded object file format limit) and the suggestion to compile with the flag /bigobj

我在 Visual Studio 中在哪里设置这个标志?

Where do I set this flag in visual studio?

推荐答案

在命令行属性页上,如此处.

On the Command Line property page as described here.

相关文章