I'm trying to compile on Windows (using VC6) and have a problem with files using the drand function (from GNU). I don't have a stdlib with this routine for Windows. The modules/libraries that I see as perequisites don't include stdlib. Where can I find the necessary modules?
Immersion Corporation (Canada)
As a quick fix you can define the drand symbol with a random number generator available in the windows libraries, e.g. (just a guess)
#define drand48() rand()
From the drand48 manual you need a random number generator ranging [0.0, 1.0).
I thought I replaced all the drand48 by rand because
the "man drand48" says:
"These functions are declared obsolete by SVID 3, which states that
rand(3) should be used instead."
The new deformation (damage) code for the cars contains it, if I remember correct.
I changed the drand48 calls in the graphic and simuv3 parts.
will give the new code a try
Note: I saw in the "future" documents that atmospheric conditions were going to be added. Is this being worked on now?
ok, I've tried to compile the MS VC projec, and it definitely doesn't work. There is a module called tgfclient that is not being built?
no, not at the moment. sometimes the todo list is much bigger than the time we can spend on the project...
I really don't understand how these forum works :-( the last post was about the "atmospheric" feature...
are you trying to compile from the CVS tree ? in this case I now that it is difficult, and I'll ask Christophe to have his lastest projects.
Sorry that was my fault.. I added the question about atmospheric conditions in the compile for windows chain.
Yes I'm compiling from the CVS tree. I assumed that this was the latest code.
Christophe comfirmed that it was not easy to have the CVS version compiling on Windows.
He will send me his modifications as soon as his internet connection returns to normal condition.
I hope that next week I'll be able to update the CVS tree for Windows compilation.
Ok, that's great. I have a version of the project that will compile in Debug mode (for Windows) now. Would someone like to have a look and see if it can be incorporated into the official product?
Log in to post a comment.