【问题标题】:Exprtk parser not working on VS 2015?Exprtk 解析器无法在 VS 2015 上运行?
【发布时间】:2016-06-21 18:14:34
【问题描述】:

我正在尝试使用此站点的解析器:

http://www.partow.net/programming/exprtk/

在 VS 2015 上。不幸的是,在编译 exprtk_simple_example_01(使用解析器下载的示例文件之一)时出现以下错误:

Severity    Code    Description Project File    Line    Suppression State
Error   C4996   'std::_Copy_impl': Function call with parameters that may be       
unsafe - this call relies on the caller to check that the passed values are 
correct. To disable this warning, use -D_SCL_SECURE_NO_WARNINGS. See 
documentation on how to use Visual C++ 'Checked Iterators'  TEST        
c:\program files (x86)\microsoft visual studio 14.0\vc\include\xutility 2229    

这是为什么呢?这个解析器与 VS 2015 不兼容吗?

【问题讨论】:

  • See documentation on how to use Visual C++ 'Checked Iterators' - 你试过了吗:) 还有... stackoverflow
  • 您应该回答自己的问题并接受答案。

标签: c++ parsing exprtk


【解决方案1】:

解决方案是:

在解决方案资源管理器中,右键单击项目,选择“属性”。项目属性页面将打开。展开左侧树中的“>C/C++”条目并在其下选择“预处理器”。右窗格中的顶部条目应该是“预处理器定义”。在该编辑框中,添加 _SCL_SECURE_NO_WARNINGS,用 ; 将其与其他条目分开

然后设置链接器标志/bigobj!

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2015-12-29
    • 2015-11-17
    • 1970-01-01
    • 2021-07-29
    • 2017-07-21
    • 2021-01-12
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多