报错:
error LNK2019: 无法解析的外部符号 "void __cdecl boost::throw_exception(class std::exception const &)" (?throw_exception@boost@@YAXAEBVexception@std@@@Z),该符号在函数 "void __cdecl boost::asio::detail::do_throw_error(class boost::system::error_code const &,char const *)" (?do_throw_error@detail@asio@boost@@YAXAEBVerror_code@system@3@PEBD@Z) 中被引用
解决办法:
2022.10.4更新
使用MVSC clang编译 ndt-omp报错:Error: cannot use 'throw' with exceptions disabled。
解决办法: 同上,也是在【代码生成】加上EHsc,参考:Cannot use 'throw' with exceptions disable · Issue #289 · Sarcasm/irony-mode (github.com)
报错:comparison between pointer and integer ('long long' and 'int (*)() noexcept')
描述:指向std::numeric_limits<int32_t>::max(),看代码是因为int64_t类型的数据在和std::numeric_limits<int32_t>::max()做对比,以为因为这样会报这样的错,把int32_t改为int64_t发现还是不可以。
解决办法:启用pdb编译就报错,不启动则不报问题了
终极解决办法:增加NOMINMAX的预定义