Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

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

  1. Aug 19, 2013 #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:

    #include <iostream>

    using namespace std;

    int main()
    {
    cout<<"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!
     
  2. jcsd
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook

Can you offer guidance or do you also need help?
Draft saved Draft deleted