This is the mail archive of the gsl-discuss@sources.redhat.com mailing list for the GSL project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: gsl_vector_fprintf


Annett Keller writes:
 > 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

It looks like you may be using a non-unix platform.  If you still have
problems please send a bug report to bug-gsl at gnu dot org with details of
the compiler and operating system version and commands used to compile
and run the program so we can try to reproduce the problem for
testing. Thanks.

regards,
-- 
Brian Gough

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]