Author Topic: Compiling in cmd  (Read 6439 times)

sanchyvil

  • Guest
Compiling in cmd
« 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...

Offline dje

  • Lives here!
  • ****
  • Posts: 683
Re: Compiling in cmd
« Reply #1 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

sanchyvil

  • Guest
Re: Compiling in cmd
« Reply #2 on: October 05, 2008, 03:43:45 pm »
tnx for the help i can use the g++ command now