Links & Procedures:
DEV-C++
Download Here!
DevCpp is serves as a compiler which runs the program that you made.
GEANY 0.17 (stable version)
Geany (here you can make you program, it supports C, C++, java, language, etc.
COMPILING C PROGRAMS IN WINDOWS USING GCC (DEV-C++ and GEANY)
Installing the required programs
- Install Geany by double-clicking the installation file.
- Click Next/Yes/Ok/Agree for all the dialog boxes you encounter in order to make a default installation.
- Install Dev-C++ by double-clicking the installation file.
- Click Next/Yes/Ok/Agree for all the dialog boxes you encounter in order to make a default installation.
Configuring Windows
- Open My Computer.
- Right-click anywhere inside the window's white space and select Properties.
- Click the Advanced tab in the System Properties dialog box.
- Click the Environment Variables button.
- In the System variables fieldset, you will see two columns, namely Variable and Value.
- Double-click Path under Variable, if you see it. Scroll down if you don't.
- In the Edit System Variable dialog box click on the Variable value text box. Using your right cursor (arrow) key, move the cursor to the end of the text.
- Type the following: ;C:\Dev-Cpp\bin. Click the OK button.
- Click the OK button for the Environment Variables dialog box.
- Click the OK button for the System Properties dialog box.
- Restart Windows.
- Click Start>Run. Type cmd.
- At the command prompt, type gcc. The output of the command should be: gcc no input files. Otherwise,
- Repeat steps 1-13.
Configuring Geany
- Open Geany by double-clicking the shortcut on the Desktop of clicking the link from Start>All Programs>Geany>Geany.
- Click the arrow next to the New button. Select C source file.
- Press CTRL+S to save the file with the filename test.c. Click Save.
- Click Build>Set Includes and Arguments on the main menu.
- Type the following on the indicated text boxes:
1. Compile: gcc -Wall -c "%f"
2. Build: gcc -Wall -o "%e" "%f"
3. Execute: "%e"
- Click OK.
- Click the Compile button, followed by the Build>Build option in the main menu, and finally the Execute button. Or you can press F8, F9, and F5. The message window should display the text: Compilation finished successfully.
- Otherwise, repeat steps 1-7.
Nice post-thanks
ReplyDeleteI run Geany for Windows too and am trying to understand it & use it as my main programming IDE.
For me I like Geany (it seems simpler compared to NetBeans & even CodeBlocks IDEs).
It appears Geany picks up whatever tools you have in your Windows path. Somewhile back I ran Geany for C/C++ coding with this Devcpp setup but for some unknown reason it stopped working as my Win Path had been altered & devCpp link was no longer there?! I installed TDM-GCC compiler (automatically added to Path during install) & now Geany uses that for C/C++. I have edited Geany compile & build commands for C files to Compile: gcc -Wall -c "%f" & Build: gcc -Wall -o "%e" "%f" & for C++ g++ -Wall -o "%e" "%f".
Best wishes :-)