This is the mail archive of the
gsl-discuss@sources.redhat.com
mailing list for the GSL project.
gsl_vector_fprintf
- From: Annett Keller <keller_annett at gmx dot de>
- To: gsl-discuss at sources dot redhat dot com
- Date: Wed, 26 Feb 2003 11:48:09 +0100 (MET)
- Subject: gsl_vector_fprintf
Hi,
hope I chose the right list/address.
Probably my problem is quite simple to solve but I can't do it.
I want to run the test program for gsl_vector_fprintf given in the GNU-GSL
library:
#include <stdio.h>
#include <gsl/gsl_vector.h>
int main(void)
{
int i;
gsl_vector *v=gsl_vector_alloc(10);
for (i=0;i<10;i++)
{
gsl_vector_set(v,i,1.23+i);
}
{
FILE *f=fopen("test1.txt","w"); /* "test1.dat" doesn't work either
gsl_vector_fprintf(f,v,"%.5g");
fclose(f);
}
return 0;
}
compiling shows no error but running leads to an error message:
somthing like 'the command in line 0x77883941 points to store address
0x00000010. "written" can't be run on that store address'
did anyone ever had such a problem?
Thanks
Annett
keller_annett at gmx dot de
--
+++ GMX - Mail, Messaging & more http://www.gmx.net +++
Bitte lächeln! Fotogalerie online mit GMX ohne eigene Homepage!