#include <stdlib.h> missing in btsoftbody.cpp

pico
Posts: 229
Joined: Sun Sep 30, 2007 7:58 am

#include <stdlib.h> missing in btsoftbody.cpp

Post by pico »

Hi Erwin,

'rand' is used in btsoftbody.cpp without definition.

stdlib.h defines 'rand'.

I don't know why some compilers know this by default. Well, some don't ;)
Could you please include <stdlib.h> at top of btsoftbody.cpp?

Thanks
User avatar
Erwin Coumans
Site Admin
Posts: 4221
Joined: Sun Jun 26, 2005 6:43 pm
Location: California, USA

Re: #include <stdlib.h> missing in btsoftbody.cpp

Post by Erwin Coumans »

We will fix those two includes, as suggested, and replace rand by btRand.

Thanks for the feedback!
Erwin