You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@axis.apache.org by "Dimuthu Gamage (JIRA)" <ji...@apache.org> on 2007/11/26 14:16:43 UTC
[jira] Resolved: (AXIS2C-750) Generated code will not build when
there are cyclical header includes
[ https://issues.apache.org/jira/browse/AXIS2C-750?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Dimuthu Gamage resolved AXIS2C-750.
-----------------------------------
Resolution: Fixed
Already Fixed
> Generated code will not build when there are cyclical header includes
> ---------------------------------------------------------------------
>
> Key: AXIS2C-750
> URL: https://issues.apache.org/jira/browse/AXIS2C-750
> Project: Axis2-C
> Issue Type: Bug
> Components: code generation
> Affects Versions: 1.1.0
> Environment: N/A
> Reporter: Michael Mole
> Priority: Minor
>
> If I have a schema that allows for cyclical dependencies, the generated adb databindings will not build.
> For example, the generated code will look something like this:
> foo.h
> #include bar.h
> typedef struct foo foo_t;
> bar function();
> bar.h
> #include foo.h
> typedef struct bar bar_t
> foo function();
> This will not compile. foo.h will try to include bar.h. bar.h then tries to resolve foo in the function declaration, but it cannot because foo has not been defined yet. This is because the typedef in foo.h comes after the #include bar.h.
> To resolve this issue, I moved the typedefs ahead of the #includes. The generated code should do this to avoid this problem with cyclical dependencies.
--
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: axis-c-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-dev-help@ws.apache.org