delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/04/10/23:00:37

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
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

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<int>::BinaryHeap(int)'
atest.cc:12: undefined reference to `Heap<int>::Insert(int)'
atest.cc(.text+0x56): undefined reference to `Heap<int>::Insert(int)'
c:/djgpp/tmp\ccdaaaaa(.text+0x80):atest.cc: more undefined references
to `Heap<int>::Insert(int)' follow
c:/djgpp/tmp\ccdaaaaa: In function `main':
atest.cc:20: undefined reference to `Heap<int>::FindMin(void)'
atest.cc:21: undefined reference to `Heap<int>::DeleteMin(void)'

the heap.h files contains a template class declaration of Heap.

Could anyone help me solve this problem?

Thanks,

Joe

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019