Mail Archives: djgpp/1999/10/20/02:13:04
Posting your source code wouldn't be a bad start.
If you refuse to do that, know this:
"undefined reference to List<int>::List(void)" means that
1) one of your files is trying to construct a List<int> without
argument, eg:
List<int> v;
2) There doesn't seem to be a constructor for List<int> with no
parameters, so perhaps you didn't write one.
(you wrote:)
>I don't know if anyone answered my question
>before, so I'll ask it again.
What does that mean anyway? Did you *check* if someone answered your
question?
Davin.
On Tue, 19 Oct 1999 07:16:30 -0700, Brian Ronk <rithe AT xoommail DOT com>
wrote:
> I have a problem
>with a List class that uses templates. As far as
>I can tell everything is correct. It compiles to
>the .exe fine, or maybe it happens when the
>linking occurs... Ok, it doesn't make the .exe,
>so that would mean that the error occurs when it's
>linking. The error that I am getting is:
>undefined reference to 'List<int>::List(void)'.
>That isn't the only one, but they all are the
>same, just with different functions in my class.
>Does someone have an idea of what I should do?
__________________________________________________________
*** davmac - sharkin'!! davmac AT iname DOT com ***
my programming page: http://yoyo.cc.monash.edu.au/~davmac/
- Raw text -