Question: I was trying to create a makefile that target multiple main.o but I don't know what I did wrong. (ignore the c file)(calculator.cpp, useFraction.cpp are

I was trying to create a makefile that target multiple main.o but I don't know what I did wrong.

(ignore the c file)(calculator.cpp, useFraction.cpp are the two main file I tried to target.)

I was trying to create a makefile that target multiple main.o but

2??? calculator.cpp c useFraction.cpp c reduce fraction.c C+4 Fraction.cpp h Fraction.h 2.png Q?? All: calculator useFraction Fraction.o: Fraction.cpp Fraction.h g+ std-c++14-Wall -c Fraction.cpp-o Fraction g++-std-c++14 -o calculator Fraction.o calculator.cpp g++ -std-c++14 o useFraction Fraction.o useFraction.cpp calculator: Fraction. o useFraction: Fraction. o clean: g++std-c++14-Wall -c Fraction.cpp-o Fraction g++ -std-c++14-o calculator Fraction.o calculator.cpp clang: error: no such file or directory: 'Fraction.o' make: ***[calculator] Error 1

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!