generation of c++ library