add cmd to c++ compile