Re: [Flightgear-devel] Latest Build Problems

2002-04-04 Thread Jonathan Polley

I just finished successfully building with MSVC.  Thanks for the updates!

Jonathan Polley

On Thursday, April 4, 2002, at 03:22 AM, D Luff wrote:

> 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


___
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel



Re: [Flightgear-devel] Latest Build Problems

2002-04-04 Thread Curtis L. Olson

Alexander Kappes writes:
> Ok, sorry for this. I will try to remember it for the future. Is anybody
> going to fix this in the CVS tree?
> 
> What do I have to do if I want the gcc compiler under Linux to return
> an error if a routine of type non-void is defined but no value is
> returned?
> 
> BTW, how is updating of the CVS tree handled for this project? I suppose
> there is a limited number of people who are allowed to upload, who is it?

Lot's of stuff can get tossed about on the mailing lists and it can
get a bit confusing as to what is actually supposed to
happen... especially if a person isn't the original author and doesn't
have time to dig in and get intimite with the code.  What seems to
work best is if the original author(s) of the code can monitor the
discussion and submit the necessary changes to David or me.

Thanks,

Curt.
-- 
Curtis Olson   IVLab / HumanFIRST Program   FlightGear Project
Twin Cities[EMAIL PROTECTED]  [EMAIL PROTECTED]
Minnesota  http://www.menet.umn.edu/~curt   http://www.flightgear.org

___
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel



Re: [Flightgear-devel] Latest Build Problems

2002-04-04 Thread Alexander Kappes

> 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.
>

Ok, sorry for this. I will try to remember it for the future. Is anybody
going to fix this in the CVS tree?

What do I have to do if I want the gcc compiler under Linux to return
an error if a routine of type non-void is defined but no value is
returned?

BTW, how is updating of the CVS tree handled for this project? I suppose
there is a limited number of people who are allowed to upload, who is it?

Cheers Alexander


___
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel



Re: [Flightgear-devel] Latest Build Problems

2002-04-04 Thread D Luff

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



Re: [Flightgear-devel] Latest Build Problems

2002-04-03 Thread Jonathan Polley

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?

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



[Flightgear-devel] Latest Build Problems

2002-04-03 Thread Jonathan Polley
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