Jonathan Polley wrote: > Doing some more investigation, I found that there is a runways.cxx in both > FlightGear/src/ATC and FlightGear/src/Airports. Are they the same? >
OK, sorry for breaking things... runways.cxx shouldn't be in ATC - get rid of it. It was in there because I wasn't sure about the change to it and I thought Curt should look at it before overwriting the proper one. ground.[ch]xx is not meant to be compiling yet - remove it from makefile.am - its in there purely so others working on the ATC can see where its at. In ATC.cxx change: int FGATC::RemovePlane() { } to int FGATC::RemovePlane() { return 0; } to fix your compiler error. The problem in approach.cxx is the good old (for int i= ... business. Alexander - MSVC6 can't scope variable declarations within a for loop declaration properly so you need to do int i; for(i= ... { } for(i= ... { } instead of for(int i= ... { } for(int i= ... { } which works on conforming compilers. Cheers - Dave > Thanks, > > Jonathan Polley > > On Wednesday, April 3, 2002, at 07:30 PM, Jonathan Polley wrote: > > > I just updated to the latest CVS and tried to build. > > > > ATCmgr.cxx > > c:\flightgear\src\atc\atcmgr.cxx(201) : warning C4715: > > 'FGATCMgr::GetATCPointer' : not all control paths return a value > > JSBSim.cxx > > c:\flightgear\src\atc\atc.cxx(34) : error C4716: 'FGATC::RemovePlane' : > > must return a value > > > > Linux complains as well, but generates a WARNING for the second problem > > instead of an error. > > > > I then fix the error, updated to Erik's version of uiuc_menu.cpp, rebuild, > > and I then get: > > > > approach.cxx > > c:\flightgear\src\atc\approach.cxx(360) : error C2374: 'i' : redefinition; > > multiple initialization > > c:\flightgear\src\atc\approach.cxx(350) : see declaration of 'i' > > c:\flightgear\src\atc\approach.cxx(366) : error C2374: 'i' : redefinition; > > multiple initialization > > c:\flightgear\src\atc\approach.cxx(350) : see declaration of 'i' > > > > ground.cxx > > c:\flightgear\src\atc\ground.hxx(28) : error C2065: 'vector' : undeclared > > identifier > > c:\flightgear\src\atc\ground.hxx(28) : error C2501: 'SG_USING_STD' : > > missing storage-class or type specifiers > > c:\flightgear\src\atc\ground.hxx(29) : error C2065: 'list' : undeclared > > identifier > > c:\flightgear\src\atc\ground.hxx(29) : error C2501: 'SG_USING_STD' : > > missing storage-class or type specifiers > > c:\flightgear\src\atc\ground.hxx(29) : error C2086: 'SG_USING_STD' : > > redefinition > > c:\flightgear\src\atc\ground.hxx(49) : warning C4091: 'typedef ' : > > ignored on left of 'struct arc' when no variable is declared > > c:\flightgear\src\atc\ground.hxx(51) : error C2143: syntax error : > > missing ';' before '<' > > c:\flightgear\src\atc\ground.hxx(51) : error C2378: 'list' : redefinition; > > symbol cannot be overloaded with a typedef > > c:\flightgear\src\atc\ground.hxx(51) : error C2143: syntax error : > > missing ';' before '<' > > c:\flightgear\src\atc\ground.hxx(52) : error C2653: 'arc_list_type' : is > > not a class or namespace name > > c:\flightgear\src\atc\ground.hxx(52) : error C2146: syntax error : > > missing ';' before identifier 'arc_list_itr' > > c:\flightgear\src\atc\ground.hxx(52) : fatal error C1004: unexpected end > > of file found > > > > runways.cxx > > c:\flightgear\src\atc\runways.cxx(40) : fatal error C1083: Cannot open > > include file: 'runways.hxx': No such file or directory > > > > I can fix the problem in approach.cxx, but the ones in ground.cxx I > > cannot (I love the STL problems). Also, I have no idea where runways.hxx > > went. > > > > Thanks, > > > > Jonathan Polley > > > > > _______________________________________________ > Flightgear-devel mailing list > [EMAIL PROTECTED] > http://mail.flightgear.org/mailman/listinfo/flightgear-devel -- [EMAIL PROTECTED] _______________________________________________ Flightgear-devel mailing list [EMAIL PROTECTED] http://mail.flightgear.org/mailman/listinfo/flightgear-devel