Fatal error c1001 of Visual C ++

Source: Internet
Author: User

If you are an old Visual C ++ user, you will be familiar with Visual C ++'s fatal error c1001. If you are using vc6 to compile a large project, and if you are using vc6 to compile a template project, congratulations, this error will pop up and say hello to you from time to time, you are helpless.

Detailed error information is as follows:
Fatal error c1001: Internal compiler Error
(Compiler file 'msc1. cpp ', line 1794)
Please choose the Technical Support Command on the Visual C ++
Help menu, or open the Technical Support Help File For more information error executing cl.exe.

There are already solutions written by others on the Internet, but they seem to be very troublesome and there are also side effects (for example, there is a requirement to disable the precompiled header option, it will lead to compilation of the entire project as a good old guy pulls a car ). And the official description of this problem here: http://support.microsoft.com /? SCID = kb % 3ben-us % 3b305980 & X = 14 & Y = 12
However, it may take great luck to solve the problem according to Microsoft's consistent style and its guidance.

After many verifications, the following methods can be used in vc6: find the name of the CPP file being compiled when an error occurs in the error message and write it down; create a new sub-folder under source files in the FileView window, move the CPP file you just remembered to this folder, and compile it again. (By the way, this actually changes the compilation sequence of CPP files in the project.) It can be very responsibly said that the success rate of self-verification by the old man is more than 99%.

This technology was originally designed for vc6. Since vs2003, the old man has never encountered this problem, so he has never shared it. Unfortunately, history always repeats itself. Just now, a brother playing with vs2005 was touching me and telling me that the compiler reported the following error:
Fatal error c1001: an internal error occurs in the compiler. (The English version of the error message seems to be: Fatal error c1001: an internal error has occurred in the compiler .)
The old man saw at a glance that this was definitely a zombie, so he told him the secret and got it done! The only thing that needs to be noted is that in vs2005, FileView has been changed to Solution Explorer ("solution manager" in Chinese "), the new folder menu item is also changed to "Add-> new filter" (Chinese may be "Add-> new filter "). That's all.

Good luck with this problem. I can find this article.Article.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.