Re: Guile 1.8.2 Compile Error

2007-11-12 Thread Kevin Brott
Ludovic, et al; On Mon, 2007-11-12 at 21:13 +0100, Ludovic Courtès wrote: > Hi, > > "Kevin Brott" <[EMAIL PROTECTED]> writes: > > > Hopefully I'm not out-of-line or violating protocol in some brutish > > fashion, but regarding this query/response on the guile-user mailing > > list archive ...

Re: Guile 1.8.2 Compile Error

2007-11-12 Thread Ludovic Courtès
Hi, "Kevin Brott" <[EMAIL PROTECTED]> writes: > In file included from ../libguile/gc.h:27, > from ../libguile.h:73, > from discouraged.c:22: > ./libguile/hooks.h:43: error: expected ';', ',' or ')' before '.' token This is the second line of the typedef for `scm

Re: Guile 1.8.2 Compile Error

2007-11-12 Thread Kevin Brott
On Tue, 2007-11-13 at 00:14 +0100, Ludovic Courtès wrote: .. > > In file included from ../libguile/gc.h:27, > > from ../libguile.h:73, > > from discouraged.c:22: > > ./libguile/hooks.h:43: error: expected ';', ',' or ')' before '.' token > > This is the second li

Re: Guile 1.8.2 Compile Error [GAH]

2007-11-12 Thread Kevin Brott
Bollux, let's try that again... On Tue, 2007-11-13 at 00:14 +0100, Ludovic Courtès wrote: .. > This is the second line of the typedef for `scm_t_c_hook_function'. Can > you try compiling *only* that typedef? And then this: > > typedef void * (* foo_t) (void *, void *); > > Then: > > type

Re: Guile 1.8.2 Compile Error [GAH]

2007-11-12 Thread Kevin Brott
Ludovic Courtès wrote: > > > > Did you prepend "#define SCM_API extern"? It will fail without this. > > When I do that ... and this is the code: ---cut--- main () { #define SCM_API extern typedef void *(*scm_t_c_hook_function) (void *hook_data, vo

Re: Guile 1.8.2 Compile Error [GAH]

2007-11-12 Thread Ludovic Courtès
Hi, "Kevin Brott" <[EMAIL PROTECTED]> writes: > I'd agree - except this is the only code it's broken on, and I went > through freshly compiled versions of gcc 3.3.6, 3.4.6, 4.0.4, 4.1.2, and > 4.2.2 - and all of them have the same basic problem. FWIW - I couldn't > get 1.6.8 to compile until I ha

Re: Guile 1.8.2 Compile Error [GAH]

2007-11-12 Thread Kevin Brott
On Tue, 2007-11-13 at 00:51 +0100, Ludovic Courtès wrote: > It's better to put the declaration outside (to avoid cumulating > potential problems). You could try this: > > typedef void * (* foo_t) (void *, void *); > > foo_t > doit (foo_t x) > { > return x; > } > > Or this: > >