Basic calculator written in C++.
- Install the
g++
compiler for C++ programs. If you don't have it preinstalled, visit gcc.gnu.org - Install
make
for compiling C++ programs with Makefiles. If you don't have it preinstalled, visit gnu.org. - Download the gtkmm library along with its dependencies.
Assuming that this repository was just cloned and the prerequisites have been fulfilled, the steps for running the program are as follows:
- Open a command line
- Change directory into this repo's directory.
- In the command line, run:
make run
Alternatively, if you don't have make
installed, run the commands written in the Makefile.
- Open a command line
- Change directory into this repo's directory.
- Compile the program with this command:
g++ main.cc utils.cc gui.cc -o exe `pkg-config --cflags --libs gtkmm-4.0` -std=c++17
- Run the program with this command:
./exe