[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-gsl] gsl_matrix_fread

From: Brian Gough
Subject: Re: [Bug-gsl] gsl_matrix_fread
Date: Tue, 22 Apr 2003 19:53:49 +0100

Annett Keller writes:
 > I tried to use gsl_matrix_fread() to read in a matrix but
 > failed as soon as I did not use the example program given
 > in the manual.
 > My working enviroment is: PC, Windows 2000 Professional,
 > Visual C++ 6.0, in addition to the default settings of the
 > program I activated the 'Disabled Language Extensions' and
 > switched to 'Multithresded DLL' (I do need this enviroment
 > for the rest of my program).
 > I do get the following error message:
 > "gsl: C:\Windows\Desktop\gsl-1.3\block\fwrite_source.c:64:
 > ERROR: fread failed Default GSL error handler invoked.
 > abnormal program termination"

Thank you for the test program.  

On Microsoft Windows any files using fread/fwrite need to be
opened in binary mode.  If you use fopen(...,"wb") and
fopen(...,"rb") it should work.

I have updated the example in the manual to use wb/rb to make
it portable to Windows.


Brian Gough

Network Theory Ltd             Phone: +44 (0)117 3179309
15 Royal Park                    Fax: +44 (0)117 9048108
Bristol BS8 3AL                  WWW: http://www.network-theory.co.uk/
United Kingdom                 Email: address@hidden     

reply via email to

[Prev in Thread] Current Thread [Next in Thread]