Search code examples
visual-c++visual-studio-2005windows-7c1001

Visual Studio 2005 - VC++ compiler C1001 on Windows 7


When I try to build a simple "Hello World" C++ app on Windows 7 Beta, using Visual Studio 2005 (VC++2005) I get a rather generic error

C1001 error (Internal compiler error)

The compiler seems to just crash, and Windows pops up its (un)helpful This program has stopped working dialog. The file it complains about is mcp1.cpp.

Has anyone come across this before?

Cheers, Fritz

EDIT: The code is:

#include <iostream>

int main(int argc, char** argv) {
    std::cout << "Hello!";
    return 0;
}

EDIT 2: I have installed SP1 as well as SP1 for Vista. VS popped up a warning saying it needs SP1 for Vista, but installing it makes no difference. No ideas about what I can possibly do to fix this?


Solution

  • Turns out it was the .NCB file included with the project - it was copied from a Windows XP setup, and after deleting that .NCB file, the project built fine under Windows 7 - no problems since.