Alex Romosan asked

> 
> "Vivian Meazza" <[EMAIL PROTECTED]> writes:
> 
> > I attach a diff against CVS - HEAD which I applied to get CVS to compile
> > under Cygwin. It may not be the best or preferred way to do it, but the
> > patch works here, so far as I can see.
> 
> 
> diff -u -w -b -r1.11 AIFlightPlan.hxx
> --- AIFlightPlan.hxx    25 Oct 2005 13:49:56 -0000      1.11
> +++ AIFlightPlan.hxx    25 Oct 2005 19:17:09 -0000
> @@ -77,14 +77,14 @@
>    time_t getStartTime() { return start_time; };
> 
>    void    create(FGAirport *dep, FGAirport *arr, int leg, double alt,
> double speed, double lat, double lon,
> -                bool firstLeg, double radius, const string& fltType,
> const string& aircraftType, const string& airline);
> +                bool firstLeg, double radius, string fltType, string
> aircraftType, string airline);
> 
>    void setLeg(int val) { leg = val;};
>    void setTime(time_t st) { start_time = st; };
>    int getGate() { return gateId; };
>    double getLeadInAngle() { return leadInAngle; };
> -  const string& getRunway() { return rwy._rwy_no; };
> -  const string& getRunwayId() { return rwy._id; };
> +  string getRunway() { return rwy._rwy_no; };
> +  string getRunwayId() { return rwy._id; };
>    void setRepeat(bool r) { repeat = r; };
>    bool getRepeat(void) { return repeat; };
>    void restart(void);
> 
> why do you need to do this? 

Er ... because Cygwin wouldn't compile?

>what was the error when trying to compile
> the cvs version?
>

The function in AIFlightPlan.cxx was not defined in AIFlightPlan.hxx so far
as the compiler was concerned.

It now compiles and runs OK

V.     
 


_______________________________________________
Flightgear-devel mailing list
[email protected]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel
2f585eeea02e2c79d7b1d8c4963bae2d

Reply via email to