added c++ mode configuration