Thread View: gnu.chess
3 messages
3 total messages
Started by David Thiele
Fri, 26 Jul 1991 06:06
xboard1.2 (wont compile) help!
Author: David Thiele
Date: Fri, 26 Jul 1991 06:06
Date: Fri, 26 Jul 1991 06:06
18 lines
1034 bytes
1034 bytes
HELP! HELP! HELP! HELP! HELP! HELP! HELP! Xboard 1.2 just doesnt want to compile. I am using X11R4. The problem: line 1861 (*fileProc(buf)) actual has 1 parameter while formal declaration has 3... Whats the problem? Is it a problem with XtCallbackProc? Can I use a different X command? Help! Ps. I havent changed the original source as it comes in the distribution. Both patches have been sucessfully applied to the code... Thanks Dave thiele@ironbark.bcae.oz.au
Re: xboard1.2 (wont compile) help!
Author: Robert Hyatt
Date: Fri, 26 Jul 1991 16:04
Date: Fri, 26 Jul 1991 16:04
31 lines
1808 bytes
1808 bytes
In article <861@sheoak.bcae.oz> thiele@ironbark.bcae.oz.au (David Thiele) writes: >HELP! HELP! HELP! HELP! HELP! HELP! HELP! > >Xboard 1.2 just doesnt want to compile. I am using X11R4. > >The problem: line 1861 (*fileProc(buf)) actual has 1 parameter while > formal declaration has 3... > >Whats the problem? Is it a problem with XtCallbackProc? Can I use a >different X command? Help! > >Ps. I havent changed the original source as it comes in >the distribution. Both patches have been sucessfully applied to the >code... > >Thanks >Dave > >thiele@ironbark.bcae.oz.au this is fairly common with the plethora of C compilers around. The error simply means that the procedure fileProc() is expecting THREE parameters in your library, while the one in the library used by the original programmer only needed one on his system. Simply check your manual and find out what you need to add.... probably a couple of '0' or '1' are all that is needed. Maybe one of the parameters is a mode flag that the original didn't need. A second option is that some compilers don't care if you pass too few parameters, and the programmer got away with it. anyway, it should be easy to fix...
Re: xboard1.2 (wont compile) help!
Author: Jim Liu
Date: Mon, 29 Jul 1991 00:33
Date: Mon, 29 Jul 1991 00:33
24 lines
1331 bytes
1331 bytes
In article <861@sheoak.bcae.oz> thiele@ironbark.bcae.oz.au (David Thiele) writes: >HELP! HELP! HELP! HELP! HELP! HELP! HELP! > >Xboard 1.2 just doesnt want to compile. I am using X11R4. > >The problem: line 1861 (*fileProc(buf)) actual has 1 parameter while > formal declaration has 3... > ... etc ... The problem is that fileProc is being declared wrong and your compiler is picky about prototyping. Here's a quick fix. Search for XtCallbackProc in xboard.c and change: XtCallbackProc fileProc; to void (*fileProc)(); and fileProc = (XtCallbackProc) proc; to fileProc = proc; Sorry, I never quite got the hang of patch files.... - Jim jtliu@Phoenix.princeton.edu
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads