View Single Post
Old 03-02-2003, 07:59 PM   #2 (permalink)
Danish
Registered User
 
Join Date: Mar 2003
Posts: 12
Danish is on a distinguished road
Send a message via AIM to Danish
Hm...

Perhaps a little more detail. I'm using MinGW, and it appears that it doesn't like templates whose functions aren't defined in the file which is using them. And... that's bad because I want to define templated classes in their own files.

Any way around this?

Oh, yeah, and I abandoned the insertion operator overloading altogether and just did LinkedList::output() in the meantime. I'd still like to know how to fix either problem, though.

Thanks.

Okay, I'm getting a little better, now. I now have a functional templated linked list, but it's leaking memory left and right. Since I think this would be a good point to learn from, does anyone have any good gdb tutorials, particularly ones that could help me find memory leaks? I'm in way over my head, here, because google searches don't turn up anything useful and gdb itself isn't too helpful on learning how to use it. I'll see what I can learn in the meantime, though...
Danish is offline   Reply With Quote