

If you are already in the directory where your source code file resides then you don't have to give any command to change directory. For example, if your c or cpp file resides in "C:\" drive then you can change your directory giving the command cd C:\. If you don't have the latest version of FireCMD then you can download it from here.īefore giving command for compilation, you may need to change your current working directory in FireCMD shell to the directory location where "helloworld.cpp" or any other source code file that you want to compile exists. Now we have the source code ready for compilation. You can copy the code given above, paste it in FireTXT editor and save it as "helloworld.cpp". Discussing the syntax is not in the scope of this tutorial but you can use the following hello world c++ program code for testing.Ĭout << "\nHello World.\nFireCMD shell rocks!" << endl The program code must obey C or C++ syntax. Note that the filename must end with ".c" (for C program) or ".cpp" (for C++ program) extension, e.g. You can also use any other ordinary editor like Notepad. You can open FireTXT in new tab of FireCMD from New Tab sub-menu of the File menu.
MINGW MAKE COMMAND PLUS
You can edit the C or C plus plus program's source code using the FireTXT text editor. Creating the program (Editing source code) For example, if you have installed MinGW in "C:\MinGW\" then your bin directory path will be "C:\MinGW\bin". Now you can append the MinGW's bin directory path at the end separated by a semicolon.

Select PATH variable from the list and click on edit.

To do this you can right click on Computer (My Computer) icon and from Advanced tab click on "Environment Variables". Important: After installing MinGW, you will need to add it's bin directory path to the %PATH% environment variable. While installing MinGW, make sure you tick both C Compiler and C++ Compiler options when it asks to select components. You can download it's latest installer version by clicking here. You will need to download it's Windows port i.e. We are going to use the UNIX's popular gcc compiler. In this tutorial you will learn about the processes you need to go through in order to compile your C (or C++) programs.
