Fw: [ODE] Problem in dReal *L = (dReal*) ALLOCA (740216);

Adam D. Moss adam at gimp.org
Mon Jul 26 18:32:49 MST 2004


Liu wrote:
> Let dReal *L = (dReal*) ALLOCA (n*nskip*sizeof(dReal));
> be dReal *L = new dReal[ n*nskip*sizeof(dReal) ];
> ...
> delete[ ]L;
>  
> then
>  
> It can work correctly for VC++ or BC++Builder ^.^

I'm not sure that variable-sized array declarations
are standard C(++) though.  (But then again, neither
is alloca!)

--Adam
-- 
Adam D. Moss   . ,,^^   adam at gimp.org   http://www.foxbox.org/   co:3


More information about the ODE mailing list