我在编译makefile时遇到困难,我想知道是否可以收到有关我做错的任何输入。出于某种原因,它告诉我我无法在shell中编译并使用linprog
代替?
CC = g++
DIR = /home/majors/dlowe/makefileHW
CFLAGS = -g -I. -c
LFLAGS = -g
make: main.o size.o history.o extra.o
$(CC) $(LFLAGS) -o make main.o size.o history.o extra.o
main.o: main.cpp
$(CC) $(CFLAGS) main.cpp
size.o: size.cpp size.h
$(CC) $(CFLAGS) size.cpp
history.o: history.cpp history.h
$(CC) $(CFLAGS) history.cpp
extra.o: extra.cpp extra.h
$(CC) $(CFLAGS) extra.cpp
clean:
rm -rf *.o
错误在这里:
enter code here
dlowe@shell.cs.fsu.edu:~/makefileHW> make -f Assignment7
g++ -g -I. -c main.cpp
No programming on shell. Please use linprog instead.
g++ -g -I. -c size.cpp
No programming on shell. Please use linprog instead.
g++ -g -I. -c history.cpp
No programming on shell. Please use linprog instead.
g++ -g -I. -c extra.cpp
No programming on shell. Please use linprog instead.
g++ -g -o make main.o size.o history.o extra.o
No programming on shell. Please use linprog instead.
'