Skip to content

Won't compile under MINGW64 - drand48 is not partof stdlib #18

@spasmsagain

Description

@spasmsagain

Hi

Trying to compile this under Windows 10 on a MINGW64 (which is actually part of the windows Octave package)

Downloaded and built pcg_random.

Added in the headers and suggested on pcg_random help pages to use ldexp(pcg32_random(), -32) - 1.0; (not after cryptographic quality random numbers).

It builds but I'm getting
40 1.#INF00e+000 0.000000e+000
80 1.#INF00e+000 0.000000e+000
120 1.#INF00e+000 0.000000e+000
in the output_MMult0.m file which wont plot

Suggestions on fixing for Windows MINGW64?

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions