Why do my programs keep coming up as NTVDM CPU illegal instruction?

Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
1 reply · 2K views
nst.john
Messages
163
Reaction score
1
I am using Windows XP Version 2002 and I am using freecommandLinetools as a compiler for the c++ language. Every time I write a program it always says it is an NTVDM CPU illegal instruction and it doesn't work, what's wrong with my programs? Here is an example:
C:
#include <iostream>

using namespace std;

int main()
{
  count<<"HEY, you, I'm alive! Oh, and Hello World!\n";
  cin.get();

  return 1;
}
Is something wrong with my program? Or do I need a new compiler for my computer, or what ever? What's the problem? Thanks in advance!
 
Last edited by a moderator:
Physics news on Phys.org
XP systems stopped being supported in the summer of 2010. Getting a new compiler will be difficult, but it does appear to me to be a compiler problem - it requests a hardware opcode your system does not support. As a last ditch effort try this as a fix - it is a guess on my part.: