On Tue, Aug 10, 2004, Robert Anderson wrote:

> I downloaded the 2.0.1 release, and got the following compilation
> error:
>
> % make
> ./libtool --mode=compile --quiet gcc -c -I. -I.. ../pth_event.c
> ../pth_event.c: In function `pth_event':
> ../pth_event.c:199: parse error before `*'
> ../pth_event.c:199: parse error before `)'
> ../pth_event.c: In function `pth_event_extract':
> ../pth_event.c:269: parse error before `*'
> ../pth_event.c:269: parse error before `)'
> make: *** [pth_event.lo] Error 1

The problematic line is:

   ev->ev_args.FUNC.func  = va_arg(ap, int (*)(void *));

So, seems like your va_arg() is confused by the function
pointer type. Under what OS and C compiler are you trying this?

                                       Ralf S. Engelschall
                                       [EMAIL PROTECTED]
                                       www.engelschall.com

______________________________________________________________________
GNU Portable Threads (Pth)            http://www.gnu.org/software/pth/
Development Site                      http://www.ossp.org/pkg/lib/pth/
Distribution Files                          ftp://ftp.gnu.org/gnu/pth/
Distribution Snapshots                 ftp://ftp.ossp.org/pkg/lib/pth/
User Support Mailing List                            [EMAIL PROTECTED]
Automated List Manager (Majordomo)           [EMAIL PROTECTED]

Reply via email to