Question: I am trying to create a make file for my c++ program. I have the following: In RoomDimensions.h i am including FeetInches.h, in RoomCarpet.h i
I am trying to create a make file for my c++ program. I have the following:
In RoomDimensions.h i am including FeetInches.h,
in RoomCarpet.h i am including Room.Dimensions.h
in RoomMain.cpp im including RoomCarpet.h.
I have individual .cpp files for all functions and .h for all classes.
I am getting this error from the server

default: myprog myprog: FeetInches.o RoomDimensions.o RoomCarpet.o RoomMain.o FeetInches.o: FeetInches.cpp FeetInches.h RoomDimensions.o: RoomDimensions.cpp RoomDimensions.h FeetInches.h RoomCarpet.o: RoomCarpet.cpp RoomDimensions.h RoomCarpet.h RoomMain.o: RoomMain.cpp RoomCarpet.h gtt FeetInches.o RoomDimensions.o RoomCarpet.o RoomMain.o -o myprog g++ FeetInches.cpp -c gtt RoomDimensions.cpp -c g++ RoomCarpet.cpp oc gtt RoomMain.cpp-c rm -rf *.o myprog clean default: myprog myprog: FeetInches.o RoomDimensions.o RoomCarpet.o RoomMain.o FeetInches.o: FeetInches.cpp FeetInches.h RoomDimensions.o: RoomDimensions.cpp RoomDimensions.h FeetInches.h RoomCarpet.o: RoomCarpet.cpp RoomDimensions.h RoomCarpet.h RoomMain.o: RoomMain.cpp RoomCarpet.h gtt FeetInches.o RoomDimensions.o RoomCarpet.o RoomMain.o -o myprog g++ FeetInches.cpp -c gtt RoomDimensions.cpp -c g++ RoomCarpet.cpp oc gtt RoomMain.cpp-c rm -rf *.o myprog clean
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
