template (?) problem

Joined
Jan 7, 2008
Messages
1
Reaction score
0
I am having a lot of trouble figuring this out, as this C++ code is above my skillset. I am trying to do a custom build of aliens verses predator. I have spent several hours fixing all the errors and bugs (compiling with Visual Studio 2005). I have everything fixed but this:

My errors are:

Code:
c:\backups\avptools\fox editing tools\avp_vc\3dc\win95\hash_tem.hpp(815) : error C2143: syntax error : missing ';' before '*'
c:\backups\avptools\fox editing tools\avp_vc\3dc\win95\hash_tem.hpp(815) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\backups\avptools\fox editing tools\avp_vc\3dc\win95\hash_tem.hpp(815) : fatal error C1903: unable to recover from previous error(s); stopping compilation


These lines give me the error:

Code:
template <class TYPE,class ARG_TYPE,class CMP_ARG_TYPE> _base_HashTable<TYPE,ARG_TYPE,CMP_ARG_TYPE>::Node* _base_HashTable<TYPE,ARG_TYPE,CMP_ARG_TYPE>::NewNode(ARG_TYPE _dataR,Node * _nextP)
{
	return new Node(_dataR,_nextP);
}

template <class TYPE,class ARG_TYPE,class CMP_ARG_TYPE>_base_HashTable<TYPE,ARG_TYPE,CMP_ARG_TYPE>::Node* _base_HashTable<TYPE,ARG_TYPE,CMP_ARG_TYPE>::NewNode()
{
	return new Node;
}

The entire source file is attached

I found another thread on this forum with a problem with this file. It didn't seem to be the same issue. I did try adding "this->" to the Iterator variables. That didn't fix it. I've about given up. Can anyone offer any help? Thanks.
 

Attachments

  • Hash_tem.zip
    5.6 KB · Views: 124

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,226
Members
46,815
Latest member
treekmostly22

Latest Threads

Top