Sam*_*Sam 7 c++ cygwin makefile g++
我写了一个非常简单makefile
的c++
程序,但它返回makefile:2: *** missing separator. Stop.
错误.它出什么问题了?
makefile
:
all:
[tab]g++ function.cpp -o out
Run Code Online (Sandbox Code Playgroud)
我在cygwin
和中编译程序Ubuntu
.
谢谢
你需要一个真正的选项卡而不是g ++命令前面的空格,你也不需要function.h
输入g ++命令.
all:
g++ function.cpp -o out
^^^ tab here
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
14613 次 |
最近记录: |