[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Help-gsl] fread error help
From: |
Patrick Alken |
Subject: |
Re: [Help-gsl] fread error help |
Date: |
Wed, 27 Mar 2019 16:57:14 +0000 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.5.0 |
I don't see how anyone can help you if you don't provide a minimal
working example code
On 3/27/19 10:07 AM, Damian Kulec wrote:
> Hi,
>
> I've downloaded the GNU library because i need to do some matrix arithmetic
> for a program I am writing. First I need to read in a preexisting binary
> file which I then need to process.
>
> The issue occurs when I call gsl_matrix_fread. Debugging the issue simply
> points me to ..\block\fwrite_source.c:64, where I get the warning: "ERROR:
> fread failed. Default GSL error handler invoked". I've gone through the GNU
> documentation and any forum I was able to find online referencing this
> specific error. I followed the documentation and the example provided, but
> to no avail.
>
> The answers I found on the forums were more useless. One answer said to
> "close the pointer to the file after opening it", but that just gave me
> another error: Expression: fh >= 0 && (unsigned)fh < (unsigned)_nhandle.
> Other solutions directed me to make sure I opened the file specifying that
> it's "read-only" and "binary", which I already have done. I can't figure
> out why this function is not working for me.
>
> Please let me know how to solve this.
>
> Thank you,
> Damian