rebuild by C++