View Single Post
Re: Linux Bug in CVS source
Old
  (#7)
minorgod
Member
 
minorgod's Avatar
 
Status: Offline
Posts: 43
Join Date: Jan 2004
Default Re: Linux Bug in CVS source - 20-06-2004

The update introduced a compilation bug on Linux...compiler said:


NodeMachine.cpp: In member function `void cNodeMachine::path_think(cBot*, float)':
NodeMachine.cpp:3257: error: name lookup of `iGn' changed for new ISO `for' scoping
NodeMachine.cpp:3018: error: using obsolete binding at `iGn'
make: *** [NodeMachine.o] Error 1


So I went to line 3018 and changed this:

for (int iGn=0; iGn < MAX_GOALS; iGn++)

to this:

int iGn=0;
for (iGn=0; iGn < MAX_GOALS; iGn++)


And now it compiles. I'm now going to try to track down the lag again.


Nowhere does science promise emancipation.
  
Reply With Quote