From: Ali Bharmal Newsgroups: comp.os.msdos.djgpp Subject: "Undefined resource" < What does it mean? Date: Sat, 31 May 1997 16:37:12 +0100 Organization: Bing's Bollege, The Uni-VARSITY of Bambridge Lines: 34 Message-ID: <339045A8.7B00@geocities.com> Reply-To: abharmal AT hotmail DOT com NNTP-Posting-Host: quango.sel.cam.ac.uk Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk I attempted yesterday to link two object files together, one which holds the definition of members of a linked-list class (linkedlist.cc) and the other holding the main() function (bookmarks.cc). However, all member functions which were not inlined in a header for the class and which were reference in bookmarks.cc caused the following type of error: Compiling: bookmarks.cc no errors Compiling: linkedlist.cc no errors Creating: bookmarks.exe Error: bookmarks.o: In function `main': bookmarks.cc(201) Error: undefined reference to `LinkedList::~LinkedList(void) There were some errors What does "undefined reference" mean? The code for the linked list class is fine, there is a test main() function in linkedlist.cc which when built by itself tests the class and this work OK. What am I missing? I've tried to search for the error, but couldn't find anything useful? I'm using DJGPP 2.01 and RHIDE 1.2. Thanks, -- __________________________________________________________ | _ _ Selwyn College, Grange Road, |\ | |_||. |_)|_ _ _ _ _ _ | Cambridge CB3 9D || | | ||| |_)| |(_|| '| | |(_|| abharmal AT hotmail DOT com || |__________________________________________________________|| \__________________________________________________________\