1
我正在嘗試使用Makefiles來實踐一個非常簡單的程序。程序文件是:此生成文件只創建.o文件
main.cpp
other.cpp
other.h
我想最終的可執行文件是Prog。
當我運行這個時發生了什麼是我得到一個main.o和other.o但沒有Prog。
我在這裏錯過了什麼?
## file Makefile
CXXOBJECTS= %.o
CXX= g++
CXXSOURCES= main.cpp other.cpp
CXXFLAGS= -std=c++11 -O2
Prog : main.o other.o
main.o : main.cpp
other.o : other.cpp other.h
## eof Makefile
真棒,只是一行:P – IBit
我顯然需要15個代表投票了......我會'在4分鐘內'檢查:) – IBit
@IBit這是正常的,只要你的MF正在工作:) – noobProgrammer