[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Guile 1.8.2 Compile Error
From: |
Ludovic Courtès |
Subject: |
Re: Guile 1.8.2 Compile Error |
Date: |
Sat, 15 Sep 2007 11:06:12 +0200 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux) |
Hi,
address@hidden 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.