petrkotas 0 Newbie Poster

I am not sure if this is more software problem or C problem. Nevertheless, I am trying to run simple test code to check if my lapack installation is OK.

#include <stdio.h>

#include <atlas_enum.h>
#include "clapack.h"

double m[] = {
  3, 1, 3,
  1, 5, 9,
  2, 6, 5
};

double x[] = {
  -1, 3, -3
};

int
main()
{
  int ipiv[3];
  int i, j;
  int info;

  for (i=0; i<3; ++i) {
    for (j=0; j<3; ++j)  printf("%5.1f", m[i*3+j]);
    putchar('\n');
  }

  info = clapack_dgesv(CblasRowMajor, 3, 1, m, 3, ipiv, x, 3);
  if (info != 0) fprintf(stderr, "failure with error %d\n", info);

  for (i=0; i<3; ++i) printf("%5.1f %3d\n", x[i], ipiv[i]);

  return 0;
}

I know I have to link up additional libraries to I linked them up :

cc testlapack.c -o testlapack -llapack_atlas -llapack -lblas -latlas -lm

But everytime I try to run compiler it keeps returning error about missing atlas_enum.h main.c:3: fatal error: atlas_enum.h: No such file or directory Just out of curiosity I removed #include <altas_enum.h>, but compiler told about missing clapack.h. At this point I looked in the /usr/include/atlas/ where I found clapack.h but no atlas_enum.h. I am using ubuntu 10.10 with repository version of atlas and lapack with libblas-dev for some aditional headers. If anyone would help me, I would b very grateful.