This is in a section of code that is shipping the data over the net, so in this case a fixed limited structure size is desirable. We can always extend it later if we need to ... re: David's/Andy's principle of not over designing to much too early (aka doing just barely enough to get by?) :-)
Curt. Jon Berndt writes: > These items should not be limited, anyhow. Where is this done??? > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]]On Behalf Of Jonathan Polley > Sent: Monday, April 08, 2002 9:24 PM > To: [EMAIL PROTECTED] > Subject: [Flightgear-devel] MSVC Still not Building > > > Although SimGear is now building under MSVC (thanks). > > MSVC also does not like having constants defined in a class (net_fdm.hxx > and raw_ctrls.hxx). > > static const int FG_MAX_ENGINES = 4; > static const int FG_MAX_WHEELS = 3; > static const int FG_MAX_TANKS = 2; > > When I used the recommended, and I apologize for not remembering by > whom, change to > > enum {FG_MAX_TANKS = 2, > FG_MAX_WHEELS = 3, > FG_MAX_ENGINES = 4, > }; > > it compiles, links, and runs just fine. > > Thanks! > > Jonathan Polley > > Flying Again! > > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> > <HTML><HEAD> > <META http-equiv=Content-Type content="text/html; charset=us-ascii"> > <META content="MSHTML 6.00.2713.1100" name=GENERATOR></HEAD> > <BODY> > <DIV><SPAN class=742563802-09042002><FONT face=Arial color=#0000ff size=2>These > items should not be limited, anyhow. Where is this done???</FONT></SPAN></DIV> > <BLOCKQUOTE > style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid"> > <DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma > size=2>-----Original Message-----<BR><B>From:</B> > [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]]<B>On Behalf Of </B>Jonathan > Polley<BR><B>Sent:</B> Monday, April 08, 2002 9:24 PM<BR><B>To:</B> > [EMAIL PROTECTED]<BR><B>Subject:</B> [Flightgear-devel] MSVC > Still not Building<BR><BR></FONT></DIV>Although SimGear is now building under > MSVC (thanks).<BR><BR><?fontfamily><?param Courier>MSVC also does not like > having constants defined in a class (net_fdm.hxx and > raw_ctrls.hxx).<BR><BR>static const int FG_MAX_ENGINES = 4;<BR>static const > int FG_MAX_WHEELS = 3;<BR>static const int FG_MAX_TANKS = 2;<BR><BR>When I > used the recommended, and I apologize for not remembering by whom, change > to<BR><BR>enum {FG_MAX_TANKS = 2,<BR>FG_MAX_WHEELS = 3,<BR>FG_MAX_ENGINES = > 4,<BR>};<BR><BR>it compiles, links, and runs just > fine.<BR><BR>Thanks!<BR><BR>Jonathan Polley<BR><BR>Flying > Again!<BR></BLOCKQUOTE><?/fontfamily></BODY></HTML> -- 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