[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Help-gsl] gsl: fwrite_source.c:64: ERROR: fread failed
From: |
Fred J. |
Subject: |
[Help-gsl] gsl: fwrite_source.c:64: ERROR: fread failed |
Date: |
Mon, 18 Oct 2004 22:45:45 -0700 (PDT) |
Hello
when I run the following code, I get the following
error.
would appriciate some help as my first post of a
similar problem may have been lacking some info.
thanks
***************code***************
#include <cstdio>
#include "/usr/include/gsl/gsl_matrix.h"
#include "/usr/include/gsl/gsl_sf_bessel.h"
{
gsl_matrix * m = gsl_matrix_alloc(6, 18);
FILE * iF = fopen( "/home/sam/data.file", "r" );
gsl_matrix_fread(iF, m);
fclose(iF);
}
***************error***************
gsl: fwrite_source.c:64: ERROR: fread failed
Default GSL error handler invoked.
Program received signal SIGABRT, Aborted.
0x404a0ee9 in raise () from /lib/tls/libc.so.6
********************my
configurations********************
Linux debian 2.6.8 #1 Sat Aug 28 18:22:21 EST 2004
i686 GNU/Linux
installed pacakges are:
libgsl0 1.5-2
libgsl0-dev 1.5-2
atlas3-base 3.6.0-16
atlas3-base-de 3.6.0-16
atlas3-doc 3.6.0-16
atlas3-headers 3.6.0-16
gcc 3.3.4-2
the exmple code in the doc. runs ok.
#include <cstdio>
#include "/usr/include/gsl/gsl_matrix.h"
#include "/usr/include/gsl/gsl_sf_bessel.h"
int main (void)
{
double x = 5.0;
double y = gsl_sf_bessel_J0 (x);
printf ("J0(%g) = %.18e\n", x, y);
return 0;
}
*************** OUTPUT ***************
$./prog
J0(5) = -1.775967713143382920e-01
Hello
when I run the following code, I get the following
error.
would appriciate some help as my first post of a
similar problem may have been lacking some info.
thanks
***************code***************
#include <cstdio>
#include "/usr/include/gsl/gsl_matrix.h"
#include "/usr/include/gsl/gsl_sf_bessel.h"
{
gsl_matrix * m = gsl_matrix_alloc(6, 18);
FILE * iF = fopen( "/home/sam/data.file", "r" );
gsl_matrix_fread(iF, m);
fclose(iF);
}
***************error***************
gsl: fwrite_source.c:64: ERROR: fread failed
Default GSL error handler invoked.
Program received signal SIGABRT, Aborted.
0x404a0ee9 in raise () from /lib/tls/libc.so.6
*****************my configurations*****************
Linux debian 2.6.8 #1 Sat Aug 28 18:22:21 EST 2004
i686 GNU/Linux
installed pacakges are:
libgsl0 1.5-2 The GNU Scientific Library (GSL)
-- library package
libgsl0-dev 1.5-2 The GNU Scientific Library (GSL)
-- development package
atlas3-base 3.6.0-16 Automatically Tuned
Linear Algebra Software,
atlas3-base-de 3.6.0-16 Automatically Tuned
Linear Algebra Software,
atlas3-doc 3.6.0-16 Automatically Tuned
Linear Algebra Software,
atlas3-headers 3.6.0-16 Automatically Tuned
Linear Algebra Software,
gcc 3.3.4-2 The GNU C compiler
the exmple code in the doc. runs ok.
#include <cstdio>
#include "/usr/include/gsl/gsl_matrix.h"
#include "/usr/include/gsl/gsl_sf_bessel.h"
int main (void)
{
double x = 5.0;
double y = gsl_sf_bessel_J0 (x);
printf ("J0(%g) = %.18e\n", x, y);
return 0;
}
*************** OUTPUT ***************
$./prog
J0(5) = -1.775967713143382920e-01
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
- [Help-gsl] gsl: fwrite_source.c:64: ERROR: fread failed,
Fred J. <=