简体   繁体   中英

Visual Studio 2013 VC++ Compiler

I am working Visual Studio 2013 and boost 1.60.

When I try to build a project, an error occurred, as seen below:

boost\\type_traits\\common_type.hpp(42): fatal error C1001: An internal error has occurred in the compiler.

After googling around, it seems that, there is a bug in VC compiler, as explained in the following link: https://svn.boost.org/trac/boost/ticket/11885

The solution suggested is to update Visual Studio, which leads to updating MSVC.

However, after I updated Visual Studio to update 5, it seems that the MSVC is not updated, the version of MSVC is still 18.00.21005.1, which is supposed to be updated to 18.00.31101. Therefore, the error happened in the compiling is still there.

Is there anything I have missed? Thanks for your help in advance.

In the preprocessor definition add BOOST_NO_CXX11_TEMPLATE_ALIASES . Which will make this error disappear

It´s 100% necessary to use VS 2013? Can you change to VS 2015? If the answer it´s no, you can try to dessinstall and reinstall the VS 2013 and in the instalation process you must be sure to choose the C/C++ compiler, but I think that that compiler it´s obligatory so maybe you have a Installation problem with the compiler, try to reinstall VS . I hope that this answer will help you. Regards my friend.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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