Mail Archives: djgpp/1997/11/27/10:16:28
Matthew Bennett wrote:
>
> Hi,
>
> This problem is getting annoying now - I can't seem to use srandom or
> random in rsxntdj, or whenever I compile programs with the -Zwin32
> option :(
>
> In rsxntdj, though the commands are recognised and no compiler errors
> are given, they cause my program to quit and win95 to display an
> error message:
of course no errors are given because you are using the ld.exe that came
with the rsxntdj package which does not give errors for undefined
references to be able to deal with dll's. i don't know whether that is
the best way, but that is the way they chose to cope with the dll's. in
any case, i do not think there is any function called random in any
standard windows dll (remember, random is not ansi.)
> I need to use the more advanced srandom and random commands (even
> though the srand and rand functions work ok)
> How can I use these functions in rsxntdj? It is something as simple as
> including another library etc?
i guess you could always add the source of random to your project.
> Computers do what you *tell* them to do, not what you *want* them to
> do.
worth repeating.
--
----------------------------------------------------------------------
A. Sinan Unur
Department of Policy Analysis and Management, College of Human Ecology,
Cornell University, Ithaca, NY 14853, USA
mailto:sinan DOT unur AT cornell DOT edu
http://www.people.cornell.edu/pages/asu1/
- Raw text -