debbiemarkslab / plmc

Inference of couplings in proteins and RNAs from sequence variation
MIT License
104 stars 37 forks source link

new version gives error when compling in linux #12

Closed eagalpern closed 1 year ago

eagalpern commented 2 years ago

Hi, compiling this new version in linux (with ot without openmp) yelds an error:

In file included from src/plm.c:15: src/include/plm.h:106:20: error: field ‘start’ has incomplete type 106 | struct timeval start; // sys/time.h | ^~~~~ In file included from src/include/weights.h:4, from src/weights.c:6: src/include/plm.h:106:20: error: field ‘start’ has incomplete type 106 | struct timeval start; // sys/time.h | ^~~~~ In file included from src/main.c:5: src/include/plm.h:106:20: error: field ‘start’ has incomplete type 106 | struct timeval start; // sys/time.h

LDeng0205 commented 2 years ago

I have just encountered the same issue. You can fix this by adding #include <sys/time.h> in src/include/plm.h