compile as cpp