[ 
https://issues.apache.org/jira/browse/AXIS2C-658?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jamie Lyon updated AXIS2C-658:
------------------------------

    Attachment: patch.diff

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.

> ADB generated axis2_stub's will not link with C++ code
> ------------------------------------------------------
>
>                 Key: AXIS2C-658
>                 URL: https://issues.apache.org/jira/browse/AXIS2C-658
>             Project: Axis2-C
>          Issue Type: Bug
>          Components: code generation, wsdl2c tool
>         Environment: Ubuntu Linux/GCC 4.1.2
>            Reporter: Jamie Lyon
>         Attachments: patch.diff
>
>
> 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.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to