Menu

Posting from private help request.

Help
Adam Young
2009-09-08
2013-05-10
  • Adam Young

    Adam Young - 2009-09-08

    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

     
    • Adam Young

      Adam Young - 2009-09-08

      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.

       
    • Glenn-Meister

      Glenn-Meister - 2009-09-09

      I get this problem with the using-typeinfo branch but the trunk compiles and runs OK.

       
      • Adam Young

        Adam Young - 2009-09-10

        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.

         

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.