lapack
lapack copied to clipboard
Error : unknown type name 'integer'
When I try to install WMAP likelihood in MontePython, I need to use clapack.h file. When I compile, the error in the attachment appears. Do you know how to fix the problem ? For example, include some header file or anything else ?
/Users/huangxiangyu/Desktop/cosmo_dir/clapack-3.2.1-CMAKE/INCLUDE/clapack.h:10:29: error: unknown type name 'integer'
/* Subroutine */ int caxpy_(integer *n, complex *ca, complex *cx, integer *
^
/Users/huangxiangyu/Desktop/cosmo_dir/clapack-3.2.1-CMAKE/INCLUDE/clapack.h:10:41: error: unknown type name 'complex'; did you mean '_Complex'?
/* Subroutine */ int caxpy_(integer *n, complex *ca, complex *cx, integer *
^~~~~~~
_Complex
/Users/huangxiangyu/Desktop/cosmo_dir/clapack-3.2.1-CMAKE/INCLUDE/clapack.h:10:41: warning: plain '_Complex' requires a type specifier; assuming '_Complex double'
/* Subroutine */ int caxpy_(integer *n, complex *ca, complex *cx, integer *
^
double
/Users/huangxiangyu/Desktop/cosmo_dir/clapack-3.2.1-CMAKE/INCLUDE/clapack.h:10:54: error: unknown type name 'complex'; did you mean '_Complex'?
/* Subroutine */ int caxpy_(integer *n, complex *ca, complex *cx, integer *
^~~~~~~
_Complex
/Users/huangxiangyu/Desktop/cosmo_dir/clapack-3.2.1-CMAKE/INCLUDE/clapack.h:10:54: warning: plain '_Complex' requires a type specifier; assuming '_Complex double'
/* Subroutine */ int caxpy_(integer *n, complex *ca, complex *cx, integer *
^
double
/Users/huangxiangyu/Desktop/cosmo_dir/clapack-3.2.1-CMAKE/INCLUDE/clapack.h:10:67: error: unknown type name 'integer'
/* Subroutine */ int caxpy_(integer *n, complex *ca, complex *cx, integer *
^
/Users/huangxiangyu/Desktop/cosmo_dir/clapack-3.2.1-CMAKE/INCLUDE/clapack.h:11:8: error: unknown type name 'complex'; did you mean '_Complex'?
incx, complex *cy, integer *incy);
clapack is (an old release of) LAPACK converted from Fortran to C with the f2c converter - most likely you need to include f2c.h
Hi @westinhuang. I suggest you try to follow https://github.com/NIRALUser/CLAPACK for detailed instructions on how to install CLAPACK. I am closing this issue since it is unrelated to the code in LAPACK.