From: sguo AT tir DOT com (S.G) Newsgroups: comp.os.msdos.djgpp Subject: Need help with compilation errors using Djgpp Date: Sat, 11 Apr 1998 02:50:51 GMT Organization: The Internet Ramp Lines: 23 Message-ID: <352ed78e.2050353@news.tir.com> NNTP-Posting-Host: port39.annarbor01.tir.com 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 Hi, I'm new to C++ programming and to the Djgpp environment. I have created project inside the rhide and tried to compile and link it, however, there were some errors showed up and I don't know what it means and how to solve it. I have included the appropriate .h files in the main. Here are the errors: atest.cc:10: undefined reference to `Heap::BinaryHeap(int)' atest.cc:12: undefined reference to `Heap::Insert(int)' atest.cc(.text+0x56): undefined reference to `Heap::Insert(int)' c:/djgpp/tmp\ccdaaaaa(.text+0x80):atest.cc: more undefined references to `Heap::Insert(int)' follow c:/djgpp/tmp\ccdaaaaa: In function `main': atest.cc:20: undefined reference to `Heap::FindMin(void)' atest.cc:21: undefined reference to `Heap::DeleteMin(void)' the heap.h files contains a template class declaration of Heap. Could anyone help me solve this problem? Thanks, Joe