I am trying to write a makefile for a school project.
When I type:
g++ -o simulator simulator.cpp
I get the output:
simulator
Which is what I want. In my makefile I've typed:
# The target
simulator : simulator.cpp
g++ -o simulator simulator.cpp
# To generate the class files
simulator.o ...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.