Call solver from C++