help-gsl
[Top][All Lists]
Advanced

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

[Help-gsl] simple program that does nothing except error


From: Keymone
Subject: [Help-gsl] simple program that does nothing except error
Date: Wed, 28 Feb 2007 11:46:38 +0200

#include <gsl/gsl_blas.h>
#include <gsl/gsl_linalg.h>

int main() {
   int n=3;
   int l=4;

   gsl_matrix * Y = gsl_matrix_alloc(n, l);
   gsl_matrix_set_zero(Y);

   for(int i=0;i<l;i++) {
       gsl_vector_view y = gsl_matrix_column(Y, i);
   }

   gsl_matrix_free(Y);

   return 0;
}

it says: Run-Time Check Failure #0 - The value of ESP was not properly saved
across a function call.  This is usually a result of calling a function
declared with one calling convention with a function pointer declared with a
different calling convention.

any clues what can be wrong?
error raising after program execution, so the program is working good

compiled in Visual Studio 2005

--
Regards, Keymone


reply via email to

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