User forums > General (but related to Code::Blocks)
Compiling in cmd
(1/1)
sanchyvil:
Hi I dont know how to compile c++ codes in windows...
In Linux I do
--- Code: ---g++ filename.cpp -o filename
--- End code ---
and run the program using
--- Code: ---./filename
--- End code ---
I don't know how to do it in windows...
what i got is a message
--- Quote ---'g++' is not recognized as an internal or external command,operable program or batch file
--- End quote ---
Im asking it here because I also want to know if different IDE's uses different methods in compiling c++ codes in cmd...
tnx for the help...
dje:
Hi !
Either it is not installed, either it is not in the PATH environment variable.
Did you install the bundle that includes GCC ?
Dje
sanchyvil:
tnx for the help i can use the g++ command now
Navigation
[0] Message Index
Go to full version