DJ Kevin (Philippines)

Monday, November 29, 2010

Geany in Windows (how to install)



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
  1. Install Geany by double-clicking the installation file.
  2. Click Next/Yes/Ok/Agree for all the dialog boxes you encounter in order to make a default installation.
  3. Install Dev-C++ by double-clicking the installation file.
  4. Click Next/Yes/Ok/Agree for all the dialog boxes you encounter in order to make a default installation.

Configuring Windows
  1. Open My Computer.
  2. Right-click anywhere inside the window's white space and select Properties.
  3. Click the Advanced tab in the System Properties dialog box.
  4. Click the Environment Variables button.
  5. In the System variables fieldset, you will see two columns, namely Variable and Value.
  6. Double-click Path under Variable, if you see it. Scroll down if you don't.
  7. 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.
  8. Type the following: ;C:\Dev-Cpp\bin. Click the OK button.
  9. Click the OK button for the Environment Variables dialog box.
  10. Click the OK button for the System Properties dialog box.
  11. Restart Windows.
  12. Click Start>Run. Type cmd.
  13. At the command prompt, type gcc. The output of the command should be: gcc no input files. Otherwise,
  14. Repeat steps 1-13.

Configuring Geany
  1. Open Geany by double-clicking the shortcut on the Desktop of clicking the link from Start>All Programs>Geany>Geany.
  2. Click the arrow next to the New button. Select C source file.
  3. Press CTRL+S to save the file with the filename test.c. Click Save.
  4. Click Build>Set Includes and Arguments on the main menu.
  5. Type the following on the indicated text boxes:
1. Compile: gcc -Wall -c "%f"
2. Build: gcc -Wall -o "%e" "%f"
3. Execute: "%e"
  1. Click OK.
  2. 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.
  3. Otherwise, repeat steps 1-7.
Enjoy Coding..

1 comment:

  1. Nice post-thanks
    I 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 :-)

    ReplyDelete