943,964 Members | Top Members by Rank

Ad:
  • C++ Discussion Thread
  • Marked Solved
  • Views: 7823
  • C++ RSS
Oct 19th, 2004
0

Linking files for Compilation in C++ Data Structures

Expand Post »
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
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
wewe is offline Offline
8 posts
since Aug 2004
Oct 19th, 2004
0

Re: Linking files for Compilation in C++ Data Structures

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?
Reputation Points: 10
Solved Threads: 0
Newbie Poster
wewe is offline Offline
8 posts
since Aug 2004
Oct 19th, 2004
0

Re: Linking files for Compilation in C++ Data Structures

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??
Reputation Points: 10
Solved Threads: 0
Newbie Poster
wewe is offline Offline
8 posts
since Aug 2004

This thread is solved

Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C++ Forum Timeline: Almost There, Going Nowhere
Next Thread in C++ Forum Timeline: greeting everyone, a little help? thanks.





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC