axis-c-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dimuthu Gamage (JIRA)" <>
Subject [jira] Commented: (AXIS2C-750) Generated code will not build when there are cyclical header includes
Date Fri, 09 Nov 2007 09:11:50 GMT


Dimuthu Gamage commented on AXIS2C-750:

Fixed in the current java svn. Commit 593418. Thanks Michael to pointing out the bug and fix.

> Generated code will not build when there are cyclical header includes
> ---------------------------------------------------------------------
>                 Key: AXIS2C-750
>                 URL:
>             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:
For additional commands, e-mail:

View raw message