Link to home
Start Free TrialLog in
Avatar of Joseph Hyde
Joseph Hyde

asked on

How do i run a c++ file?

I made a simple file and i have tried to run it but it opens IE
Avatar of Shaun Vermaak
Shaun Vermaak
Flag of Australia image

Did you compile it? Usually, the output is an EXE
Avatar of Joseph Hyde
Joseph Hyde

ASKER

I'm not sure how to compile it
What IDE are you using?
How can i tell?
In what program did you make the file?
Notepad++
Install NppExec plugin. Here is an article which list details windowsbro.blogspot.hu/2012/10/compile-with-notepad-any-language.html

  • Use notepad++ to write code (or other IDE)
  • Compile to EXE. In the case of notepad++, use NppExec
  • Run EXE

User generated image
Is that all?
It keeps giving me errors
Did you install compiler from http://www.mingw.org/?
Yes this is the error its giving me

#include <iostream>
CreateProcess() failed with error code 2:
The system cannot find the file specified.

using namespace std;
CreateProcess() failed with error code 2:
The system cannot find the file specified.

int main
CreateProcess() failed with error code 2:
The system cannot find the file specified.

{
CreateProcess() failed with error code 2:
The system cannot find the file specified.

cout << "Hello World";
CreateProcess() failed with error code 2:
The system cannot find the file specified.

}
CreateProcess() failed with error code 2:
The system cannot find the file specified.

================ READY ================
ASKER CERTIFIED SOLUTION
Avatar of Shaun Vermaak
Shaun Vermaak
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
What is you NppExec command?
Thank you for the help...-_-