nanogui: Compiling Microwindows0.89pre8


Previous by date: 18 Feb 2002 12:12:19 -0000 Re: Announcing TuxChess, Greg Haerr
Next by date: 18 Feb 2002 12:12:19 -0000 widget library in microwindows, Srinivas O
Previous in thread: 18 Feb 2002 12:12:19 -0000 Re: Compiling Microwindows0.89pre8, Simon Wood
Next in thread:

Subject: RE: [nanogui] Compiling Microwindows0.89pre8
From: Henry Chea ####@####.####
Date: 18 Feb 2002 12:12:19 -0000
Message-Id: <ED968F412990DE4080ADEC412897784907C688@gotz-fs1.semcon.se>

Just as a follow-up in case anyone runs across this problem in the future:

In kbd_null.c I edited the NUL_Read prototype to show *buf as type MWKEY,
which seems to fix the problem.  IOW the prototype should look like this:

NUL_Read(MWKEY *buf, MWKEYMOD *modifiers, MWSCANCODE *scancode);

This seems to fix the problem with using the null keyboard driver in
Microwindows 0.89pre8.

I don't know how this problem gets fixed permanently with the official
source code, but hopefully someone who can fix the distribution will fix it.

PS my thanks go out to Simon and everyone else who helped me out!

Cheers,
//Henry Chea
Semcon Sweden AB

-----Original Message-----
From: Simon Wood
To: Henry Chea; ####@####.####
Sent: 2/15/2002 2:05 PM
Subject: RE: [nanogui] Compiling Microwindows0.89pre8

the problem might be that the prototype spec's
static int  NUL_Read(MWUCHAR *buf, MWKEYMOD *modifiers, MWSCANCODE
*scancode);

whilst the function uses:
NUL_Read(MWKEY *buf, MWKEYMOD *modifiers, MWSCANCODE *scancode)

I believe that the *buf should be type 'MWKEY'.

Hope this gets you going...
Simon Wood

-----Original Message-----
From: Henry Chea ####@####.####
Sent: Friday, February 15, 2002 12:59 PM
To: ####@####.####
Subject: RE: [nanogui] Compiling Microwindows0.89pre8

kbd_null.c:19: warning: initialization from incompatible pointer type
kbd_null.c:69: conflicting types for `NUL_Read'
kbd_null.c:12: previous declaration of `NUL_Read'
make[1]: *** [kbd_null.o] Error 1

Previous by date: 18 Feb 2002 12:12:19 -0000 Re: Announcing TuxChess, Greg Haerr
Next by date: 18 Feb 2002 12:12:19 -0000 widget library in microwindows, Srinivas O
Previous in thread: 18 Feb 2002 12:12:19 -0000 Re: Compiling Microwindows0.89pre8, Simon Wood
Next in thread:


Powered by ezmlm-browse 0.20.