B
Brian
Hello All,
I'm new to creating make files, so please help me out. I am using g++
to compile. I'm getting a weird error, if someone could help me out,
I'd appreciate it. I have a templated class that's included from
main.cpp, so I understand I don't have to compile them, just main.cpp.
Here's my makefile:
main: main.o
g++ -o main main.o
main.o: main.cpp templatedClass.h templatedClass.cpp
g++ -c main.cpp
The error that I'm getting is:
. Stop.n't know how to make main.o
If someone has seen this or sees an erro in my make, please help me out.
If I run the g++ commands from the prompt, everything works fine.
Thanks.
Brian.
I'm new to creating make files, so please help me out. I am using g++
to compile. I'm getting a weird error, if someone could help me out,
I'd appreciate it. I have a templated class that's included from
main.cpp, so I understand I don't have to compile them, just main.cpp.
Here's my makefile:
main: main.o
g++ -o main main.o
main.o: main.cpp templatedClass.h templatedClass.cpp
g++ -c main.cpp
The error that I'm getting is:
. Stop.n't know how to make main.o
If someone has seen this or sees an erro in my make, please help me out.
If I run the g++ commands from the prompt, everything works fine.
Thanks.
Brian.