Hi,
[EMAIL PROTECTED] writes:
> When compiling on AIX 5.3 using IBM's supplied GCC 4.0.0 I get
> this error.
> -------snip-----
> gcc -DHAVE_CONFIG_H -I. -I.. -I.. -I.. -D_THREAD_SAFE
> -I/sys/usr/local/include -Wall -Wmissing-prototypes -Werror -MT
> libguile_la-discouraged.lo -MD -MP -MF .deps/libguile_la-discouraged.Tpo
> -c discouraged.c -DPIC -o .libs/libguile_la-discouraged.o
> In file included from ../libguile/gc.h:27,
> from ../libguile.h:73,
> from discouraged.c:22:
> ../libguile/hooks.h:43: error: parse error before '.' token
> ../libguile/hooks.h:63: error: parse error before '.' token
> ../libguile/hooks.h:67: error: parse error before '.' token
> make: The error code from the last command is 1.
> -------snip-----
This corresponds to the following declarations:
typedef void *(*scm_t_c_hook_function) (void *hook_data,
void *func_data,
void *data);
SCM_API void scm_c_hook_add (scm_t_c_hook *hook,
scm_t_c_hook_function func,
void *func_data,
int appendp);
SCM_API void scm_c_hook_remove (scm_t_c_hook *hook,
scm_t_c_hook_function func,
void *func_data);
Can you please try compiling a C file including similar declarations to
see what's going on (normally `SCM_API' expands to `extern')?
Thanks,
Ludovic.
_______________________________________________
Guile-user mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/guile-user