Linking files for Compilation in C++ Data Structures

Please support our C++ advertiser: Intel Parallel Studio Home
Thread Solved

Join Date: Aug 2004
Posts: 8
Reputation: wewe is an unknown quantity at this point 
Solved Threads: 0
wewe wewe is offline Offline
Newbie Poster

Linking files for Compilation in C++ Data Structures

 
0
  #1
Oct 19th, 2004
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
Reply With Quote Quick reply to this message  
Join Date: Aug 2004
Posts: 8
Reputation: wewe is an unknown quantity at this point 
Solved Threads: 0
wewe wewe is offline Offline
Newbie Poster

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

 
0
  #2
Oct 19th, 2004
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?
Reply With Quote Quick reply to this message  
Join Date: Aug 2004
Posts: 8
Reputation: wewe is an unknown quantity at this point 
Solved Threads: 0
wewe wewe is offline Offline
Newbie Poster

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

 
0
  #3
Oct 19th, 2004
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??
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC