Hi, I was trying to compile the pairwise hierarchical model following the instruction. But when I was running the make command, it is always generating the error ./util.h:10:10: fatal error: 'cblas.h file not found”.
I tried to include a cflag indicating where the cblas.h file is in the CLAPACK 3.2.1 folder, but it is generating even more errors.
phm.c:209:106: warning: format specifies type 'int' but the argument has type 'long' [-Wformat]
fprintf(stderr, "NaN is found at (%d, %d) element! (replaced by 0.0)\n", i, j);
~~ ^
%ld
phm.c:209:109: warning: format specifies type 'int' but the argument has type 'long' [-Wformat]
fprintf(stderr, "NaN is found at (%d, %d) element! (replaced by 0.0)\n", i, j);
~~ ^
%ld
phm.c:272:79: warning: format specifies type 'int' but the argument has type 'long' [-Wformat]
if(lkhd<(-1e20)){fprintf(stderr, "Inf produced at line %d (%lf %lf %lf) \n", i+1, y[i*H+0], y[i*H+1], y[i*H+2]); return 0.0;}
~~ ^~~
%ld
phm.c:273:87: warning: format specifies type 'int' but the argument has type 'long' [-Wformat]
if(isnan(lkhd)>0){fprintf(stderr, "NaN produced at line %d (%lf %lf %lf) \n", i+1, y[i*H+0], y[i*H+1], y[i*H+2]); return 0.0;}
~~ ^~~
%ld
phm.c:315:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
phm.c:476:69: warning: format specifies type 'int *' but the argument has type 'long *' [-Wformat]
sscanf(s+mtot, "%c%ld%n", &(type[0][i]), &(nexp[0][i]), &m);
~~ ^~
phm.c:536:1: warning: return type of 'main' is not 'int' [-Wmain-return-type]
long main(long argc, char** argv){
^
phm.c:536:1: note: change return type to 'int'
long main(long argc, char** argv){
^~~~
int
phm.c:536:6: error: first parameter of 'main' (argument count) must be of type 'int'
long main(long argc, char** argv){
^
7 warnings and 1 error generated.
make: *** [phm.o] Error 1
Hi, I was trying to compile the pairwise hierarchical model following the instruction. But when I was running the make command, it is always generating the error
./util.h:10:10: fatal error: 'cblas.hfile not found”.I tried to include a cflag indicating where the cblas.h file is in the CLAPACK 3.2.1 folder, but it is generating even more errors.
I’m wondering what should I do or am I doing anything wrong?
Thanks very much!
Amanda