Hi Vivian,

----- "Vivian Meazza" a écrit :

> Vivian Meazza wrote
> 
> > 
> > Alan Teeder wrote
> > 
> > > >From this morning´s CVS I now get this with VC++ 2008 :-
> > >
> > > ------ Build started: Project: FlightGear, Configuration: Release
> > > Win32 ------
> > > Compiling...
> > > WaypointList.cxx
> > > ..\..\..\src\GUI\WaypointList.cxx(112) : error C2057: expected
> constant
> > > expression
> > > ..\..\..\src\GUI\WaypointList.cxx(112) : error C2466: cannot
> allocate an
> > > array of constant size 0
> > > ..\..\..\src\GUI\WaypointList.cxx(112) : error C2133: 'buf' :
> unknown
> > size
> > >
> > > lines 111,112 are :-
> > >
> > >   int len = strlen(s);
> > >   char buf[len];
> > >
> > 
> > Yup - same here. Looks as if James has uploaded a new file which
> has
> > incompatibilities with MSVC9
> > 
> 
> 
> Workaround attached - you might have done a better one already, but it
> does
> allow a compile. I wouldn't dignify it as a fix :-)

Actually you are right, this is not a fix, this is horrible ;-)

This should be :

   int len = strlen(s);
   char *buf = new char[len];

...

   delete buf;

I will have to switch back to CVS to commit something better. I am on the git 
tag for the release for the moment.

-Fred

-- 
Frédéric Bouvier
http://my.fotolia.com/frfoto/              Photo gallery - album photo
http://fgsd.sourceforge.net/               FlightGear Scenery Designer


------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to