Project 3 on Web


[ Follow Ups ] [ Post Followup ] [ CS328 Message Board ] [ FAQ ]

Posted by Some dude on July 26, 2001 at 23:20:27:

Hello,
How did you get all the files to compile? counting ALL files dvw posted, i have 16 different files! (including test.cpp, foo files, etc.) I try to compile them in cpp, and i get about 63 errors!! The errors seem to all be similar and having to do with methods not being part of the header definitions. Could someone please help? Is this a problem b/c im not trying to compile in G++. Im using VC++, so I figure that may be a problem, but I used all 16 files exactly as they were. So the errors are these:

c:\foostring.h(21) : error C2436: '__ctor' : member function or nested class in constructor initializer list
c:\foostring.h(26) : error C2436: '__ctor' : member function or nested class in constructor initializer list
c:\foostring.h(31) : error C2436: '__ctor' : member function or nested class in constructor initializer list
c:\redblacktreeiteratordefinitions.inc.cpp(11) : error C2039: '__ctor' : is not a member of 'Iterator'
c:\redblacktreeiterator.inc.h(23) : see declaration of 'Iterator'
c:\redblacktreeiteratordefinitions.inc.cpp(18) : error C2039: '__ctor' : is not a member of 'Iterator'
c:\redblacktreeiterator.inc.h(23) : see declaration of 'Iterator'
c:\redblacktreeiteratordefinitions.inc.cpp(26) : error C2039: '=' : is not a member of 'Iterator'
c:\redblacktreeiterator.inc.h(23) : see declaration of 'Iterator'
c:\redblacktreeiteratordefinitions.inc.cpp(33) : error C2039: '__dtor' : is not a member of 'Iterator'
c:\redblacktreeiterator.inc.h(23) : see declaration of 'Iterator'
c:\redblacktreeiteratordefinitions.inc.cpp(38) : error C2039: 'valid' : is not a member of 'Iterator'
c:\redblacktreeiterator.inc.h(23) : see declaration of 'Iterator'
c:\redblacktreeiteratordefinitions.inc.cpp(44) : error C2039: 'next' : is not a member of 'Iterator'
c:\redblacktreeiterator.inc.h(23) : see declaration of 'Iterator'
c:\redblacktreeiteratordefinitions.inc.cpp(53) : error C2039: 'currentKey' : is not a member of 'Iterator'
c:\redblacktreeiterator.inc.h(23) : see declaration of 'Iterator'
c:\redblacktreeiteratordefinitions.inc.cpp(61) : error C2270: 'currentKey' : modifiers not allowed on nonmember functions
c:\redblacktreeiteratordefinitions.inc.cpp(63) : error C2039: 'currentData' : is not a member of 'Iterator'
c:\redblacktreeiterator.inc.h(23) : see declaration of 'Iterator'
c:\redblacktreeiteratordefinitions.inc.cpp(71) : error C2270: 'currentData' : modifiers not allowed on nonmember functions
c:\redblacktreenodedefinitions.inc.cpp(20) : error C2039: '__ctor' : is not a member of 'redBlackTreeNode'
c:\redblacktreenode.inc.h(27) : see declaration of 'redBlackTreeNode'
c:\redblacktreenodedefinitions.inc.cpp(29) : error C2039: '__ctor' : is not a member of 'redBlackTreeNode'
c:\redblacktreenode.inc.h(27) : see declaration of 'redBlackTreeNode'
c:\redblacktreenodedefinitions.inc.cpp(38) : error C2039: '=' : is not a member of 'redBlackTreeNode'
c:\redblacktreenode.inc.h(27) : see declaration of 'redBlackTreeNode'
c:\redblacktreenodedefinitions.inc.cpp(38) : error C2143: syntax error : missing ',' before '&'
c:\redblacktreenodedefinitions.inc.cpp(38) : error C2059: syntax error : '&'
c:\redblacktreenodedefinitions.inc.cpp(46) : error C2039: '__dtor' : is not a member of 'redBlackTreeNode'
c:\redblacktreenode.inc.h(27) : see declaration of 'redBlackTreeNode'
c:\mapiteratordefinitions.inc.cpp(7) : error C2039: '__ctor' : is not a member of 'Iterator'
c:\mapiterator.inc.cpp(25) : see declaration of 'Iterator'
c:\mapiteratordefinitions.inc.cpp(13) : error C2039: '__ctor' : is not a member of 'Iterator'
c:\mapiterator.inc.cpp(25) : see declaration of 'Iterator'
c:\mapiteratordefinitions.inc.cpp(13) : error C2143: syntax error : missing ',' before '&'
c:\mapiteratordefinitions.inc.cpp(13) : error C2059: syntax error : '&'
c:\mapiteratordefinitions.inc.cpp(20) : error C2039: '=' : is not a member of 'Iterator'
c:\mapiterator.inc.cpp(25) : see declaration of 'Iterator'
c:\mapiteratordefinitions.inc.cpp(20) : error C2143: syntax error : missing ',' before '&'
c:\mapiteratordefinitions.inc.cpp(20) : error C2059: syntax error : '&'
c:\mapiteratordefinitions.inc.cpp(27) : error C2039: '__dtor' : is not a member of 'Iterator'
c:\mapiterator.inc.cpp(25) : see declaration of 'Iterator'
c:\mapiteratordefinitions.inc.cpp(29) : error C2995: 'Iterator' : template function has already been defined
c:\redblacktreeiteratordefinitions.inc.cpp(33) : see declaration of 'Iterator'
c:\mapiteratordefinitions.inc.cpp(32) : error C2039: 'valid' : is not a member of 'Iterator'
c:\mapiterator.inc.cpp(25) : see declaration of 'Iterator'
c:\mapiteratordefinitions.inc.cpp(35) : error C2995: 'valid' : template function has already been defined
c:\redblacktreeiteratordefinitions.inc.cpp(38) : see declaration of 'valid'
c:\mapiteratordefinitions.inc.cpp(38) : error C2039: 'currentKey' : is not a member of 'Iterator'
c:\mapiterator.inc.cpp(25) : see declaration of 'Iterator'
c:\mapiteratordefinitions.inc.cpp(41) : error C2270: 'currentKey' : modifiers not allowed on nonmember functions
c:\mapiteratordefinitions.inc.cpp(41) : error C2995: 'currentKey' : template function has already been defined
c:\redblacktreeiteratordefinitions.inc.cpp(53) : see declaration of 'currentKey'
c:\mapiteratordefinitions.inc.cpp(43) : error C2039: 'currentData' : is not a member of 'Iterator'
c:\mapiterator.inc.cpp(25) : see declaration of 'Iterator'
c:\mapiteratordefinitions.inc.cpp(46) : error C2270: 'currentData' : modifiers not allowed on nonmember functions
c:\mapiteratordefinitions.inc.cpp(46) : error C2995: 'currentData' : template function has already been defined
c:\redblacktreeiteratordefinitions.inc.cpp(63) : see declaration of 'currentData'
c:\mapiteratordefinitions.inc.cpp(49) : error C2039: 'next' : is not a member of 'Iterator'
c:\mapiterator.inc.cpp(25) : see declaration of 'Iterator'
c:\mapiteratordefinitions.inc.cpp(52) : error C2995: 'next' : template function has already been defined
c:\redblacktreeiteratordefinitions.inc.cpp(44) : see declaration of 'next'
C:\test.cpp(71) : error C2664: '__thiscall fooint::fooint(const class fooint &)' : cannot convert parameter 1 from 'const int' to 'const class fooint &'
Reason: cannot convert from 'const int' to 'const class fooint'
No constructor could take the source type, or constructor overload resolution was ambiguous
C:\test.cpp(81) : error C2079: 'iter' uses undefined class 'Iterator'
C:\test.cpp(81) : error C2440: 'initializing' : cannot convert from 'class map::Iterator' to 'int'
Source or target has incomplete type
C:\test.cpp(82) : error C2228: left of '.valid' must have class/struct/union type
C:\test.cpp(82) : error C2228: left of '.next' must have class/struct/union type
C:\test.cpp(84) : error C2228: left of '.currentData' must have class/struct/union type
C:\test.cpp(86) : error C2228: left of '.currentKey' must have class/struct/union type
C:\test.cpp(87) : error C2065: 'testNumber' : undeclared identifier
C:\test.cpp(89) : error C2228: left of '.currentKey' must have class/struct/union type
C:\test.cpp(125) : error C2664: '__thiscall fooint::fooint(const class fooint &)' : cannot convert parameter 1 from 'const int' to 'const class fooint &'
Reason: cannot convert from 'const int' to 'const class fooint'
No constructor could take the source type, or constructor overload resolution was ambiguous
C:\test.cpp(131) : error C2664: '__thiscall fooint::fooint(const class fooint &)' : cannot convert parameter 1 from 'const int' to 'const class fooint &'
Reason: cannot convert from 'const int' to 'const class fooint'
No constructor could take the source type, or constructor overload resolution was ambiguous
C:\test.cpp(149) : error C2079: 'iter' uses undefined class 'Iterator'
C:\test.cpp(149) : error C2374: 'iter' : redefinition; multiple initialization
C:\test.cpp(81) : see declaration of 'iter'
C:\test.cpp(149) : error C2440: 'initializing' : cannot convert from 'class map::Iterator' to 'int'
Source or target has incomplete type
C:\test.cpp(150) : error C2228: left of '.valid' must have class/struct/union type
C:\test.cpp(150) : error C2228: left of '.next' must have class/struct/union type
C:\test.cpp(152) : error C2228: left of '.currentData' must have class/struct/union type
C:\test.cpp(152) : error C2228: left of '.value' must have class/struct/union type
C:\test.cpp(152) : error C2228: left of '.currentKey' must have class/struct/union type
C:\test.cpp(179) : error C2079: 'iter' uses undefined class 'Iterator'
C:\test.cpp(179) : error C2440: 'initializing' : cannot convert from 'class map::Iterator' to 'int'
Source or target has incomplete type
C:\test.cpp(180) : error C2228: left of '.valid' must have class/struct/union type
C:\test.cpp(180) : error C2228: left of '.next' must have class/struct/union type
C:\test.cpp(182) : error C2228: left of '.currentKey' must have class/struct/union type
C:\test.cpp(182) : error C2228: left of '.currentData' must have class/struct/union type
Error executing cl.exe.

test.exe - 63 error(s), 0 warning(s)




Follow Ups:



Post a Followup

Name:
E-Mail:

Subject:

Comments:

Optional Link URL:
Link Title:
Optional Image URL:


[ Follow Ups ] [ Post Followup ] [ CS328 Message Board ] [ FAQ ]