![]() |
|
#1
|
|||
|
|||
linked list error messagein vb6 im getting an error message :
error C2955: 'list' : use of class template requires template argument list d:\program files\microsoft visual studio\vc98\include\list(415) : see declaration of 'list' and it points to this CPP / C++ / C Code:
I dont understand this error at all everything looks correct in that function to me here is my code CPP / C++ / C Code:
Last edited by LuciWiz : 21-Jun-2005 at 10:20.
Reason: Please insert your C++ code between [c++] & [/c++] tags
|
|
#2
|
||||
|
||||
|
The offending piece of code is probably is the following from your linkedListType class declaration:
CPP / C++ / C Code:
CPP / C++ / C Code:
Matthew |
|
#3
|
|||
|
|||
|
Im getting errors still....from some reason vb6 doesnt like this...i really dont understand your post made sense but still not likeing it.....=(
|
|
#4
|
||||
|
||||
|
:-(
I will have access to VC6 tomorrow. Although I know that VC6 does not support several features of C++ templates, I am sure that there is a solution for your problem under that compiler version. I'll see what I can find. Until then, search around on Google for some clues. Matthew |
|
#5
|
||||
|
||||
|
Okay... I think I can finally help.
The friend syntax you used in your original example actually works fine in VC6! I finally did what I should have taken the time to do initially, which is compile your whole program as you posted it. The error message you posted results from your method insertAt, which attempts to use a variable list. Unfortunately, there is no variable named list is declared in that scope! Another problem, which is why you see that particular message instead of "undeclared variable", is that you are including the Standard header <list> and using the std namespace, so the compiler recognizes the name list as referring to the class std::list. There are other errors in your code, such as the symbol length, again in the method insertAt. You use it as a variable, but the only length in scope is the method (that is, member function). Try tackling some of these problems and I'll be happy to help if you come back with other specific questions/error messages. Matthew |
Recent GIDBlog
Halfway done! by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Airport Log program using 3D linked List : problem reading from file | batrsau | C Programming Language | 11 | 29-Feb-2008 07:44 |
| [Include] Doubly-linked List | dsmith | C Programming Language | 6 | 14-Apr-2006 13:12 |
| search linked list | itsmecathys | C++ Forum | 20 | 18-Apr-2005 01:34 |
| adding to linked list from external file | cghv | C Programming Language | 3 | 09-Mar-2005 13:36 |
| help on linked lists any1????? | nick4 | C Programming Language | 1 | 17-May-2004 09:32 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The