Added -c support to C++.

Signed-off-by: Xiaomao Chen <xiaomao5@live.com>