Hi

i have a problem linking upthe files
main.cpp
tree.cpp
tree.h
and list.ct really do not know how to complie with list.ct whats the ct ?
anyway inside the list.ct, are templates.

it reflect linking problem..
i.e. [Linker error] undefined reference to `Tree::cleanUp()'


Question:

what should i save list.ct as?
because i can only save as .cpp file or .h files BUT NOT .ct files


This really has caused some major headaches..
hope some one can help.
Thanks

I have save the file
as list.ct

but when i compile i still recieved a complie error

[Linker error] undefined reference to `Tree::cleanUp()'

Is there something wrong with the way i complied??
using Dev C++ as complier..
i mainly chose main.cpp, complied and run it (option)
or should i do something else before compliing it?

haha..
Problem solved..!

actually wad was needed to be done is to
include all files..
i.e. #include Tree.cpp
#include Tree.h
#include list.ct


DONE !

nonetheless still do not know wad "fileName.ct" means... maybe the template??

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.