RE: [Plib-devel] Re: MacOSX problem in JS. (Steve Baker)
Brought to you by:
sjbaker
From: Fay J. F C. AAC/W. <joh...@eg...> - 2004-05-17 13:48:01
|
Yes, Olivier's new joystick code fixes this problem. I sent Jonathan Polley a copy of the files separately and he confirmed that they work well. I've sent copies of the files to a couple of people for inclusion into CVS. John F. Fay joh...@eg... -----Original Message----- From: pli...@li... [mailto:pli...@li...]On Behalf Of ima...@ve... Sent: Monday, May 17, 2004 4:26 AM To: pli...@li... Subject: [Plib-devel] Re: MacOSX problem in JS. (Steve Baker) Hasn't someone already? Doesn't Olivier's js rewrite fix this? No one's put it in CVS yet (AFAIK). <snip> > > Message: 1 > Date: Sun, 16 May 2004 13:10:33 -0500 > From: Steve Baker <sjb...@ai...> > To: pli...@li... > Subject: [Plib-devel] MacOSX problem in JS. > Reply-To: pli...@li... > > > 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? > <snip> |