Skip to main content

Posts

Showing posts from September, 2010

GCC & G++ Compiler for Windows

Download the software MinGW. Run the MinGw installer , then this window will appear               Select the Use pre-packaged repository catalogs , then next , it will take take time & require a internet connections to downloads files. Now set the environment variable Right Click on Computer -> Properties -> Advance System Settings -> Environment Variables -> System Variable -> edit the Path variable to C:\MinGW\bin; -> ok  Now download & install the gcc & g++ packages if not install in previous download                     Open the cmd prompt & type                                   mingw-get install gcc      (for C)                  after that                                   mingw-get install g++     (for C++)     7.  Congrats gcc & g++ is now insatlled . Use any editor to write the programs .     8.  To compile the program open cmd & type :              for C :   gcc filename.c              for C++:   g++ filename.cpp