[ODE] testSmallMatrixMultiply()
Michael Keith
nifta at mac.com
Sun Jan 19 15:58:01 2003
hi,
i just downloaded and built ODE for OS X (using x11) - everything went
without problems apart from one test function.
so i was just wondering why in the testSmallMatrixMultiply() function
(from test_ode.cpp), the variable x (a dVector3) is initialised with
the call:
dMakeRandomMatrix (x,MSIZE,1,1.0);
where MSIZE is defined as:
#define MSIZE 21
since a dVector3 only has 3 elements (well, 4, but i'm guessing the
forth element is just for alignment purposes?), using MSIZE trashes
memory. replacing this call with
dMakeRandomVector (x,3,1.0);
should fix the issue.
cheers,
Mike
ps. also perhaps it might be a good idea to set RANLIB=ranlib -s in
config/makefile.osx by default to get rid of the annoying lib out of
date errors when building?