Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个 C++ 项目 [IDE = codelite],它尝试使用 g++ 编译 .c 扩展我想为 .c 文件指定一个标志,以便 g++ 将其视为 c
什么是 g++ 命令行选项,使其表现为 gcc ?
任何一个
gcc file.c
或者
g++ -x c file.c
会做你想做的...