Uploaded image for project: 'Axis2-C'
  1. Axis2-C
  2. AXIS2C-673

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.1.0
    • None
    • None
    • 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.

      Attachments

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

        Activity

          People

            Unassigned Unassigned
            aeonflame Jamie Lyon
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: