【发布时间】:2013-01-11 20:50:57
【问题描述】:
这是我的尝试:
CMD 文件:
@SET PATH=%PATH%;D:\mingw\bin
type test10.cpp | g++ -xc++ -o test10.exe
代码(此处无关):int main() {}
我得到的错误:
g++: fatal error: no input files
compilation terminated.
我认为 -x 选项是用于表示标准输入的信号,gcc 本身就是这么说的。
【问题讨论】: