Axis2-C
  1. Axis2-C
  2. AXIS2C-658

ADB generated axis2_stub's will not link with C++ code

    Details

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

      Description

      ADB generated stubs will not link with C++ code, giving undefined references. This is due to missing the 'extern "C"', it is included in the adb_.h files, but omitted in axis2_stub.h files.

      1. patch.diff
        0.7 kB
        Jamie Lyon

        Activity

        Hide
        Jamie Lyon added a comment -

        Proposed patch is attached.

        This should be applied to modules/codegen/src/org/apache/axis2/wsdl/template/c/StubHeaderTemplate.xsl

        This patch simply adds:
        #ifdef __cplusplus
        extern "C"

        { #endif #ifdef __cplusplus }

        #endif

        around the main block of code.

        Show
        Jamie Lyon added a comment - Proposed patch is attached. This should be applied to modules/codegen/src/org/apache/axis2/wsdl/template/c/StubHeaderTemplate.xsl This patch simply adds: #ifdef __cplusplus extern "C" { #endif #ifdef __cplusplus } #endif around the main block of code.
        Hide
        Samisa Abeysinghe added a comment -

        Patch applied. Many thanks for the patch

        Show
        Samisa Abeysinghe added a comment - Patch applied. Many thanks for the patch

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development