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

Re: FORTRAN && C



Кстати, а какой дистрибутив у Вас? У меня unstable и вот что мне
выдало при инсталляции lapack:

One or more critical lapack library errors were discovered when this
package was built.  As of the time of this writing, all known such errors
are due to compiler and/or ld.so errors on the affected architectures. 
The lapack libraries in this set of packages then, while practically
useless for serious numerical research, are provided here nonetheless to
facilitate smooth upgrades of lapack into Debian as a whole.



Mikolaj Golub <golub@ifmpan.poznan.pl> writes:

> Alexey Ozeritsky <aalleexxeeyy@mtu-net.ru> writes:
> 
> > double *A,*X;
> > int *C;
> > int n;
> > int INFO;
> > .......
> > n=5;
> > ......
> > A=malloc(n*n*sizeof(double));
> > X=malloc(n*n*sizeof(double));
> > C=malloc(n*n*sizeof(double));
> > .......
> > dgesv_(n,n,A,n,C,X,n,INFO);
>                        ^^^^
> 
> С lapack не знаком... но не должно ли здесь быть &INFO ?
> 
> > .......
> > (в этом случае должно происходить обращение матрицы)
> > 
> > и получаю segmentation fault
> > #1  0x080493c6 in main (argc=0, argv=0x0) at main.c:77
> > 77              dgesv_(n,1,A,n,C,X,n,INFO);
> > 



Reply to: