Erik Hofman wrote:

> Vivian Meazza wrote:
> > I'm having a problem compiling Simgear-cvs under Cygwin. The compiler
> stops
> > with the following error:
> >
> > In file included from soundmgr_openal.hxx:50,
> >                  from xmlsound.hxx:40,
> >                  from xmlsound.cxx:38:
> > /usr/local/include/AL/alc.h:39: error: syntax error before `*' token
> > /usr/local/include/AL/alc.h:51: error: `ALCcontext' was not declared in
> this
> 
> > Any advice on fixing this?
> 
> David Luff and I have figured out this is due to out-dated include files
> in that package. It would really be nice to seem them updated for Cygwin
> users.
> 
> In the mean time you could apply this patch to the alc.h header file:
> 
> diff -u alc.old.h alc.h
> --- alc.old.h   2005-01-31 15:20:33.785550400 +0000
> +++ alc.h       2005-01-31 15:17:49.299030400 +0000
> @@ -17,7 +17,7 @@
>     #define ALCAPI __declspec(dllimport)
>    #endif
> 
> -#ifdef _MSC_VER
> +#if defined _MSC_VER || defined __CYGWIN__
>    typedef struct ALCdevice_struct ALCdevice;
>    typedef struct ALCcontext_struct ALCcontext;
>   #endif
> 

This is a different solution to Norman's but:

In file included from soundmgr_openal.cxx:33:
/usr/local/include/AL/alc.h:21: error: conflicting types for `typedef struct
   ALCdevice_struct ALCdevice'
/usr/local/include/AL/alctypes.h:6: error: previous declaration as `typedef
   struct _AL_device ALCdevice'
/usr/local/include/AL/alc.h:22: error: conflicting types for `typedef struct
   ALCcontext_struct ALCcontext'
/usr/local/include/AL/alctypes.h:8: error: previous declaration as `typedef
   void ALCcontext'

Is some other change needed?

Thanks for you help, instant as always,

Regards,

Vivian



_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@flightgear.org
http://mail.flightgear.org/mailman/listinfo/flightgear-devel
2f585eeea02e2c79d7b1d8c4963bae2d

Reply via email to