Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: problems compiling

Author: Peter Rosendahl

Date: 04:06:05 12/31/01

Go up one level in this thread


On December 31, 2001 at 05:59:04, Dann Corbit wrote:

>
>Some oddities:
>
>public:
>unsigned nodecount
>
>is defined twice.
>

'unsigned int nodes' is  in data.c and find.c.

>When I define an all-inclusive file like this:
>/*
>** begin goober.c
>*/
>#include "atak.c"
>#include "data.c"
>#include "disp.c"
>#include "find.c"
>#include "goob.c"
>#include "init.c"
>#include "move.c"
>#include "test.c"
>#include "time.c"
>/*
>** end goober.c
>*/
>
>and compile that, I always get the correct nodecounts, no matter what command
>line options I use.  I have no idea why that should be.


That's strange. I just compiled the original program with the change 'int
g_pieces[33]' using MSVC 6.0 with some different optimizations and
also with gcc 2.95.3-5 (cygwin special, no optimizations) and can't
reproduce the error. Maybe there is another problem caused by usage of undefined
memory?




This page took 0 seconds to execute

Last modified: Thu, 15 Apr 21 08:11:13 -0700

Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.