Compile without IDE

how can i compile with gcc without IDE? (so far i have compiled using DevC++ and Visual studio 2012).
D:\codes\hello.cpp
#include<iostream>
int main(){
std::cout<<"hello world";
std::cin.ignore();
return 0;
}


g++ is in C:\Program Files (x86)\Dev-Cpp\MinGW64\bin

Topic archived. No new replies allowed.