Invoke g++ with source.c

ryxi@stu.xidian.edu.cn ryxi@stu.xidian.edu.cn
Mon Mar 13 16:20:00 GMT 2017


Hi,

man 1 g++ said "file.c" is considered unpreprocessed C source file. But in fact g++ would compile it as C++ source. Why does g++ behave this way? Should we make it clear in g++ doc?

---
Xi Ruoyao
School of Aerospace Science and Technology, Xidian University


More information about the Gcc-help mailing list