starting DG library in C++