Re: rawRead linker error

2014-06-01 Thread Joseph Rushton Wakeling via Digitalmars-d-learn
On 01/06/14 19:04, Joseph Rushton Wakeling via Digitalmars-d-learn wrote: Passing a regular array as the buffer doesn't cause any issues In fact it seems to be a problem to pass any array other than a ubyte array; for example a ulong[] array is problematic. The problem vanishes if the -inline

rawRead linker error

2014-06-01 Thread Joseph Rushton Wakeling via Digitalmars-d-learn
Hello all, I'm trying to read from /dev/random using File.rawRead as follows: auto f = File("/dev/urandom", "r"); ulong b; f.rawRead((&b)[0 .. 1]); writeln(b); This generates a linker error: rawread.o: In function `_D3std5stdio4File14__T7rawReadTmZ7rawReadMFAmZAm': rawread.d:(.