CodeBlocks for C Programming in Sinhala (How To Install and Get Started) - Lesson 02
What is CodeBlocks?
CodeBlocks යනු free, open-source cross-platform IDE එකක්. (Cross-platform යනුවෙන් හදුන්වන්නේ විවිධ වර්ගයේ මෙහෙයුම් පද්ධති මත ක්රියා කිරීමට සහය දක්වනවා යන්නයි.)
CodeBlocks IDE එක GCC, Clang and Visual C++ වැනි compilers ගණනාවකට සහය දක්වනවා.
Step 1: Download
- Go to http://www.codeblocks.org/downloads
- Click “Download the binary release”
- Select your OS.
- Download the installer with GCC Compiler (codeblocks-13.12mingw-setup.exe)
- Run the downloaded installer & continue with default options.
Step 2: Verify the Compiler and Debugger Path
Verify the Compiler Path
- Goto "Settings" menu ⇒ "Compiler..." ⇒ In "Selected Compiler"
- Choose "GNU GCC Compiler" ⇒ Select tab "Toolchain Executables" ⇒ Check the "Compiler's Installation Directory".
- එයට "MinGW" file එකේ path එක ලබා දිය යුතුයි. (CodeBlocks install කරලා තියෙන්නේ මේ location එකේනම් "c:\Program Files\codeblocks", MinGW එකේ location එක "c:\Program Files\codeblocks\MinGW" විය යුතුයි.)
Verify the Debugger Path
- Goto "Settings" menu ⇒ "Debugger..." ⇒ Expand "GDB/CDB debugger" ⇒ Select "Default" ⇒ In "Executable path"
- එයට "gdb.exe" file එකේ path එක ලබා දිය යුතුයි. (example, "c:\Program Files\codeblocks\MinGW\bin\gdb.exe")
Tagged:
4