gsl_vector_fprintf

Annett Keller keller_annett@gmx.de
Wed Feb 26 10:48:00 GMT 2003


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@gmx.de

-- 
+++ GMX - Mail, Messaging & more  http://www.gmx.net +++
Bitte lächeln! Fotogalerie online mit GMX ohne eigene Homepage!



More information about the Gsl-discuss mailing list