use c++ mode for headerc