eryar

PipeCAD - Plant Piping Design Software.
RvmTranslator - Translate AVEVA RVM to OBJ, glTF, etc.
posts - 603, comments - 590, trackbacks - 0, articles - 0

Boost test vs2013 fatal error C1001

Posted on 2019-07-06 12:54 eryar 阅读(1051) 评论(0)  编辑 收藏 引用 所属分类: 6.Others

Boost test vs2013 fatal error C1001

Visual Studio 2013中使用boosttest模块时会报致命错误,如下图所示:

输出报错信息如下:

1>------ Build started: Project: Test, Configuration: Debug Win32 ------

1>  main.cpp

1>d:\boost_1_70_0\boost\type_traits\common_type.hpp(47): fatal error C1001: An internal error has occurred in the compiler.

1>  (compiler file 'msc1.cpp', line 1325)

1>   To work around this problem, try simplifying or changing the program near the locations listed above.

1>  Please choose the Technical Support command on the Visual C++ 

1>   Help menu, or open the Technical Support help file for more information

========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

 

定位到报错文件是common_type.hpp

 

可以看出是因为CXX11的原因,因为VS2013不支持C++11,所以boost提供了一个宏定义来设置是否支持CXX11

BOOST_NO_CXX11_TEMPLATE_ALIASES

在Project->Properties->C/C++->Preprocessor中设置即可:

 

 


为了方便大家在移动端也能看到我的博文和讨论交流,现已注册微信公众号,欢迎大家扫描下方二维码关注。
Shing Liu(eryar@163.com)

只有注册用户登录后才能发表评论。
网站导航: 博客园   IT新闻   BlogJava   知识库   博问   管理