Does this look any better. It still doesn't work...
Code:
# Makefile for Stack program
all: calc
calc: Stack.o calc.o
g++ stack.o calc.o
Stack.o: Stack.cpp Stack.h
g++ Stack.cpp
calc.o: calc.cpp Stack.h
g++ calc.cpp Stack.cpp
main.o: calc.cpp Stack.h
g++ calc.cpp Stack.cpp -o Calc
I still keep getting undefined reference errors :(
Something strange I notice, right before the undefined reference error list, there is this:
"g++ Calc.cpp -o Calc"
It should say:
"g++ Stack.cpp Calc.cpp -o Calc"
right?