How to compile with console in windows

How can i compile my cpp with windows console. I tried g++ command but it doesn't worked . I have mingw installed. My environmental variables are correct
Start -> Run
in the appeared dialog enter cmd, then press "Ok"

Then use command 'cd' to get needed working folder(where your cpp files are)
then type g++ mycppfil1.cpp myfile2.cpp ....
it says

internal or external command, operable program or batch file
is recognized as

i have my environmental variable set as

;C:\MinGW\bin

isn't that right
Last edited on
Mayby did you get
'g++' is not recognized as an internal or external command,
operable program or batch file.

If it's so please check that C:\MinGW\bin\g++.exe exists
Last edited on
Wow i don't know why my "bin" folder was renamed "binn" thanks anyway
Topic archived. No new replies allowed.