I'm posting here a request for help I got via another channel. If anyone is interested in the project, such requests might be helpful. I'll post the solutions here as well.
error on make using GCC 3.2.2 20030222 (Red Hat Linux 3.2.2-5)
Compile errors follow. Please advise.
resolver.cpp:5: syntax error before `::' token
resolver.cpp:8: parse error before `&' token
resolver.cpp:8: `bool dependency::operator==(...)' should have been declared
inside `dependency'
resolver.cpp:8: `bool dependency::operator==(...)' must have an argument of
class or enumerated type
resolver.cpp:8: `bool dependency::operator==(...)' must take exactly two
arguments
resolver.cpp: In function `bool dependency::operator==(...)':
resolver.cpp:9: `a' undeclared (first use this function)
resolver.cpp:9: (Each undeclared identifier is reported only once for each
function it appears in.)
resolver.cpp:9: `b' undeclared (first use this function)
resolver.cpp: At global scope:
resolver.cpp:11: parse error before `&' token
resolver.cpp:11: `bool dependency::operator!=(...)' should have been declared
inside `dependency'
resolver.cpp:11: `bool dependency::operator!=(...)' must have an argument of
class or enumerated type
resolver.cpp:11: `bool dependency::operator!=(...)' must take exactly two
arguments
resolver.cpp:15: parse error before `&' token
resolver.cpp:15: `bool dependency::operator<(...)' should have been declared
inside `dependency'
resolver.cpp:15: `bool dependency::operator<(...)' must have an argument of
class or enumerated type
resolver.cpp:15: `bool dependency::operator<(...)' must take exactly two
arguments
resolver.cpp:19: parse error before `&' token
resolver.cpp:19: `bool dependency::operator<=(...)' should have been declared
inside `dependency'
resolver.cpp:19: `bool dependency::operator<=(...)' must have an argument of
class or enumerated type
resolver.cpp:19: `bool dependency::operator<=(...)' must take exactly two
arguments
resolver.cpp:23: parse error before `&' token
resolver.cpp:23: `bool dependency::operator>(...)' should have been declared
inside `dependency'
resolver.cpp:23: `bool dependency::operator>(...)' must have an argument of
class or enumerated type
resolver.cpp:23: `bool dependency::operator>(...)' must take exactly two
arguments
resolver.cpp:27: parse error before `&' token
resolver.cpp:27: `bool dependency::operator>=(...)' should have been declared
inside `dependency'
resolver.cpp:27: `bool dependency::operator>=(...)' must have an argument of
class or enumerated type
resolver.cpp:27: `bool dependency::operator>=(...)' must take exactly two
arguments
make: *** [resolver.o] Error 1
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Use the code under trunk. I originally thought I had that branch working, but there appears to be a problem there. In the meantime, I got the TRUNK code working correctly.
The difference between the two branches is the way that the Factories and Destroyers (Now lumped together into an template class called Activator) are associated with the Zones. The TRUNK code uses a pointer to a singleton object as the key for a map, whereas the branch using-typeinfo attempted a more ambitious wrapping of type info of a class into an object. I don't think I want to pursue this approach.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Yeah, I originally thought the type-info branch was working. Sorry to have mislead. I didn't get the trunk working until after. It still blows up in the qt3 example.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I'm posting here a request for help I got via another channel. If anyone is interested in the project, such requests might be helpful. I'll post the solutions here as well.
error on make using GCC 3.2.2 20030222 (Red Hat Linux 3.2.2-5)
Compile errors follow. Please advise.
resolver.cpp:5: syntax error before `::' token
resolver.cpp:8: parse error before `&' token
resolver.cpp:8: `bool dependency::operator==(...)' should have been declared
inside `dependency'
resolver.cpp:8: `bool dependency::operator==(...)' must have an argument of
class or enumerated type
resolver.cpp:8: `bool dependency::operator==(...)' must take exactly two
arguments
resolver.cpp: In function `bool dependency::operator==(...)':
resolver.cpp:9: `a' undeclared (first use this function)
resolver.cpp:9: (Each undeclared identifier is reported only once for each
function it appears in.)
resolver.cpp:9: `b' undeclared (first use this function)
resolver.cpp: At global scope:
resolver.cpp:11: parse error before `&' token
resolver.cpp:11: `bool dependency::operator!=(...)' should have been declared
inside `dependency'
resolver.cpp:11: `bool dependency::operator!=(...)' must have an argument of
class or enumerated type
resolver.cpp:11: `bool dependency::operator!=(...)' must take exactly two
arguments
resolver.cpp:15: parse error before `&' token
resolver.cpp:15: `bool dependency::operator<(...)' should have been declared
inside `dependency'
resolver.cpp:15: `bool dependency::operator<(...)' must have an argument of
class or enumerated type
resolver.cpp:15: `bool dependency::operator<(...)' must take exactly two
arguments
resolver.cpp:19: parse error before `&' token
resolver.cpp:19: `bool dependency::operator<=(...)' should have been declared
inside `dependency'
resolver.cpp:19: `bool dependency::operator<=(...)' must have an argument of
class or enumerated type
resolver.cpp:19: `bool dependency::operator<=(...)' must take exactly two
arguments
resolver.cpp:23: parse error before `&' token
resolver.cpp:23: `bool dependency::operator>(...)' should have been declared
inside `dependency'
resolver.cpp:23: `bool dependency::operator>(...)' must have an argument of
class or enumerated type
resolver.cpp:23: `bool dependency::operator>(...)' must take exactly two
arguments
resolver.cpp:27: parse error before `&' token
resolver.cpp:27: `bool dependency::operator>=(...)' should have been declared
inside `dependency'
resolver.cpp:27: `bool dependency::operator>=(...)' must have an argument of
class or enumerated type
resolver.cpp:27: `bool dependency::operator>=(...)' must take exactly two
arguments
make: *** [resolver.o] Error 1
Use the code under trunk. I originally thought I had that branch working, but there appears to be a problem there. In the meantime, I got the TRUNK code working correctly.
The difference between the two branches is the way that the Factories and Destroyers (Now lumped together into an template class called Activator) are associated with the Zones. The TRUNK code uses a pointer to a singleton object as the key for a map, whereas the branch using-typeinfo attempted a more ambitious wrapping of type info of a class into an object. I don't think I want to pursue this approach.
I get this problem with the using-typeinfo branch but the trunk compiles and runs OK.
Yeah, I originally thought the type-info branch was working. Sorry to have mislead. I didn't get the trunk working until after. It still blows up in the qt3 example.