debbiemarkslab / plmc

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

new version gives error when compling in linux #12

Closed eagalpern closed 1 year ago

eagalpern commented 1 year 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 1 year ago

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