On Wed, 28 Sep 2005, David Berry wrote:
> When I try to link an atask written in C using alink I get:
>
> dsb /stardev/cvs > alink ctest.c
> dtask_wrap.c:1:17: f77.h: No such file or directory
> dtask_wrap.c:4: error: syntax error before '(' token
> dtask_wrap.c:6: error: syntax error before '*' token
> dtask_wrap.c:6: warning: data definition has no type or storage class
> dtask_wrap.c:7: error: syntax error before '&' token
> dtask_wrap.c:7: error: conflicting types for `ctest'
> dtask_wrap.c:2: error: previous declaration of `ctest'
> dtask_wrap.c:7: warning: data definition has no type or storage class
> dtask_wrap.c:8: error: syntax error before '*' token
> dtask_wrap.c:8: warning: data definition has no type or storage class
>
> Looks like the compilation of dtask_wrap.c doesn't have a -I option to
> indicate where to pick up f77.h. Poked about for a while wondering where
> would be the best place to put it, and how to specify its value
> (presumable $STARCONF_DEFAULT_STARLINK/include somewhere in
> pcs/dtask/ailink.in.m4 ???) but got cold feet in the end. Any ideas?
Sounds like the right place, just remember to bake it in during
installation, not configuration. Of course:
alink -I$STARCONF_DEFAULT_STARLINK/include ctest.c
should work already.
Cheers,
Peter.
|