Then if you are using modern C++ tooling like Visual Studio, you can make use of hot code reload.
Here are examples in Visual Studio, and Unreal.
https://www.youtube.com/watch?v=x_gr6DNrJuM
https://www.youtube.com/watch?v=XN1c1V9wtCk