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



Erik

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

Reply via email to