[Plib-devel] MacOSX problem in JS.
Brought to you by:
sjbaker
From: Steve B. <sjb...@ai...> - 2004-05-16 18:12:41
|
This looks like a serious problem with the MacOSX version of JS. In class jsJoystick (js.h), it says: static const int kNumDevices; static int numDevices; static io_object_t ioDevices[kNumDevices]; ...but that 'ioDevices' array needs to be sized in such a way that a program including this header file can know how big the structure is. Since the actual VALUE of kNumDevices isn't known in the header file (it's set to 32 in jsMacOSX.cxx), the compiler can't compile this code. Stacy Lovell <ctr...@ma...> said: > In file included from js.cxx:23: > js.h:97: error: data member may not have variably modified type ` > io_object_t[jsJoystick::kNumDevices]' Can someone with MacOSX knowledge please fix this? ---------------------------- Steve Baker ------------------------- HomeEmail: <sjb...@ai...> WorkEmail: <sj...@li...> HomePage : http://www.sjbaker.org Projects : http://plib.sf.net http://tuxaqfh.sf.net http://tuxkart.sf.net http://prettypoly.sf.net -----BEGIN GEEK CODE BLOCK----- GCS d-- s:+ a+ C++++$ UL+++$ P--- L++++$ E--- W+++ N o+ K? w--- !O M- V-- PS++ PE- Y-- PGP-- t+ 5 X R+++ tv b++ DI++ D G+ e++ h--(-) r+++ y++++ -----END GEEK CODE BLOCK----- |