This project uses CMAKE build tool. Follow the steps below to build:
Create a build directory with mkdir build
cd buildcmake ..- to generate necessary build filesmake- use the build tool generated by CMAKE to compile the project./main- to run the app generated by make
If on Linux OS, open terminal and run:
lscpu | grep "Byte Order"
You have to build the executable to include -g compile flag to enable debugging with GDB. Use this sequence of
commands:
cd build
cmake -DCMAKE_BUILD_TYPE=Debug ..
make
To debug with GDB:
gdb main
(gdb) b 43 - look at the source code and set a breakpoint at line 43
(gdb) run - to run the debugger
(gdb) step - to step through the program