简体   繁体   English

如何在visual studio中设置compile flag / bigobj?

[英]How to set compile flag /bigobj in visual studio?

I have a cpp file that contains a huge array. 我有一个包含巨大数组的cpp文件。

I get a fatal error (exceeded object file format limit) and the suggestion to compile with the flag /bigobj 我得到致命错误(超出目标文件格式限制)和使用标志/ bigobj编译的建议

Where do I set this flag in visual studio? 我在哪里可以在visual studio中设置这个标志?

在命令行属性页面描述在这里

According to MSDN and /bigobj (Increase Number of Sections in .Obj file) : 根据MSDN和/ bigobj(增加.Obj文件中的节数)

To set this compiler option in the Visual Studio development environment 在Visual Studio开发环境中设置此编译器选项

  1. Open the project's Property Pages dialog box. 打开项目的“属性页”对话框。 For details, see How to: Open Project Property Pages . 有关详细信息,请参见如何:打开项目属性页
  2. Click the C/C++ folder. 单击C / C ++文件夹。
  3. Click the Command Line property page. 单击“命令行”属性页。
  4. Type the compiler option in the Additional Options box. 在“其他选项”框中键入编译器选项。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM