Code::Blocks Forums

User forums => General (but related to Code::Blocks) => Topic started by: sanchyvil on October 04, 2008, 06:13:24 pm

Title: Compiling in cmd
Post by: sanchyvil on October 04, 2008, 06:13:24 pm
Hi I dont know how to compile c++ codes in windows...

In Linux I do

Code
g++ filename.cpp -o filename

and run the program using

Code
./filename

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

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...
Title: Re: Compiling in cmd
Post by: dje on October 04, 2008, 06:48:19 pm
Hi !

Either it is not installed, either it is not in the PATH environment variable.

Did you install the bundle that includes GCC ?

Dje
Title: Re: Compiling in cmd
Post by: sanchyvil on October 05, 2008, 03:43:45 pm
tnx for the help i can use the g++ command now