Compile the code using the following: Get your command line in the root folder (where this file is stored) Compile using the following command: g++ characterTreeSerialization.cpp -o characterTreeSerialization ./characterTreeSerialization