www.digitalmars.com         C & C++   DMDScript  

c++ - Why doesn't drand48() and srand48() work?

Excuse me, I am no experienced C programmer, but I really need help.
I've installed DMC and if I write a program normmean.c containing this lines;

      unsigned short myseed;

...and also:

      double chi;

.. I get an error when compiling. Running "dmc normmean" yields

"normmean.obj(normmean) Error 42: Symbol Undefined _srand48" and equally for
"_drand". What is wrong? The same program (attached) worked well when compiled
with gcc at my school.
Oct 06 2006