Axis2-C
  1. Axis2-C
  2. AXIS2C-673

Variables called 'namespace' in include files cause problems when included in c++ codebase

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.1.0
    • Component/s: None
    • Labels:
      None
    • Environment:
      GCC 4.1.2, Ubuntu Linux

      Description

      Including files such as rp_header.h and rp_element.h in axis2c/neethi/include generate the following error:
      ../../../include/axis2-1.1/rp_header.h:57: error: expected ',' or '...' before 'namespace'

      This is due to the fact that the word 'namespace' is reserved in c++. It can be fixed by simply renaming the variable to some other values as will be shown by the example diffs I will attach.

      1. rp_element.h.diff
        0.4 kB
        Jamie Lyon
      2. rp_header.h.diff
        0.4 kB
        Jamie Lyon

        Activity

        Jamie Lyon created issue -
        Hide
        Jamie Lyon added a comment -

        Example diffs showing the simple change that will cause the code to compile when included into c++ code – there may be other files that need changing also, these are just the two I had to use.

        Show
        Jamie Lyon added a comment - Example diffs showing the simple change that will cause the code to compile when included into c++ code – there may be other files that need changing also, these are just the two I had to use.
        Jamie Lyon made changes -
        Field Original Value New Value
        Attachment rp_header.h.diff [ 12363941 ]
        Attachment rp_element.h.diff [ 12363942 ]
        Hide
        Manjula Peiris added a comment -

        Fixed in the latest svn. Thanks for pointing this.

        Show
        Manjula Peiris added a comment - Fixed in the latest svn. Thanks for pointing this.
        Manjula Peiris made changes -
        Fix Version/s 1.1.0 [ 12312520 ]
        Resolution Fixed [ 1 ]
        Status Open [ 1 ] Resolved [ 5 ]

          People

          • Assignee:
            Unassigned
            Reporter:
            Jamie Lyon
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development