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

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:
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.:

 

Similar threads

  • · Replies 11 ·
Replies
11
Views
3K
  • · Replies 32 ·
2
Replies
32
Views
4K
  • · Replies 12 ·
Replies
12
Views
2K
Replies
73
Views
7K
Replies
2
Views
2K
  • · Replies 39 ·
2
Replies
39
Views
5K
  • · Replies 40 ·
2
Replies
40
Views
4K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 30 ·
2
Replies
30
Views
5K
  • · Replies 3 ·
Replies
3
Views
3K