#256 StemClass.hpp needs an #include of SupplierClass

3.2.0
closed
nobody
5
2012-08-14
2007-04-14
No

... or it will not compile with gcc under MacOSX.

interpreter-3.x/trunk

kernel/classes/StemClass.hpp

Index: StemClass.hpp

--- StemClass.hpp (revision 279)
+++ StemClass.hpp (working copy)
@@ -48,6 +48,7 @@
#include "RexxCompoundTable.hpp"
#include "RexxCompoundTail.hpp"
#include "ExpressionStem.hpp"
+#include "SupplierClass.hpp"

#define SORT_CASESENSITIVE 0
#define SORT_CASEIGNORE 1

Discussion

  • Rick McGuire
    Rick McGuire
    2007-04-14

    Logged In: YES
    user_id=1125291
    Originator: NO

    What compilation errors do you get? Is it sufficient to just add

    class RexxSupplier;

    Before the definition of the RexxStem class? That's a better solution than the dependent include.

     
  • Rick McGuire
    Rick McGuire
    2007-04-14

    Logged In: YES
    user_id=1125291
    Originator: NO

    Just added a forward declaration of RexxSupplier rather than adding the include, which is a better solution for these sorts of problems.

     


Anonymous


Cancel   Add attachments