I'm trying to figure out how to get a makefile working for my .cpp file
Here is the code for main.cpp:
#include <iostream>
using namespace std;
int main() {
cout << "hello world!" << endl;
return 0;
}
Here is my code for the make file: all: main.exe
main.exe: main.o
g++ -o main.exe main.o
main.o: main.cpp
g++ -c main.cpp
When I enter the command "make"
I get this: 
But when I run main.exe I get this:

And if I run main.exe as administrator I get this:
