📦Prerequisites

All required softwares to compile and run the project

Our project is coded in C, and uses ncurses C library so prerequisites are:

1. GCC (GNU Compiler Collection):

The GNU Compiler Collection is an optimizing compiler produced by the GNU Project supporting various programming languages, inclduing C language

In order to install GCC on Windows, you need a toolkit such as MinGW (Minimalist GNU for Windows) to install it:

  1. Download and install MinGW:

MinGW official Download link

  1. Install needed packages:

Mark this following packages for installation:

  • mingw32-base

  • mingw32-gcc-g++

Click with right button on package to view options and select "Mark for installation"

then click on "Installation -> Apply Changes":

Now confirm installation and wait until it finishs and click "Close"

  1. Add GCC to the PATH:

Currently, the command prompt cannot detect the GCC because the environment path variable has not been set. Follow the steps below to set the environment path variable for MinGW on the Windows system.

The environment path variable helps to detect the compiler in your whole system. It makes the alias name for the compiler, which denotes the path.

  1. Navigate to MinGW installation folder "default: C:\\MinGW\" and copy "bin" folder's adress (Default: "C:\\MinGW\bin").

  2. Click on Windows Search bar and type "Environment Variables" or "PATH"

  3. Click on "PATH" then "Edit" button

  4. Now click on "New" and paste the "/bin" folder address then click "OK"

And finally, you've GCC installed Successfully!, now you can compile C programs using gcc command:

gcc <filename>.c -o <filename>.exe //command
/*
Example: Compiling a C program I named myProject
gcc myProject.c -o myProject.exe
*/

2. ncurses (New Curses Library):

We suppose MinGW is already installed in the system, if it's not should go back to Prerequisites

  1. Open MinGW Installation Manager.

  2. Look for the following packages and mark the checkbox: a- mingw32-libncurses (dll) b- mingw32-libncurses (dev) c- mingw32-libpdcurses (dll) d- mingw32-libpdcurses (dev)

  3. In the context menu click on InstallationApply Changes.

Last updated

Was this helpful?