I'm having this error, please help me fix this.
Thank you all
mcscan.cc:140:26: warning: ‘.collinearity’ directive writing 13 bytes into a region of size between 1 and 200 [-Wformat-overflow=]
140 | sprintf(align_fn, "%s.collinearity", prefix_fn);
| ^~~~~
mcscan.cc:140:12: note: ‘sprintf’ output between 14 and 213 bytes into a destination of size 200
140 | sprintf(align_fn, "%s.collinearity", prefix_fn);
| ~^~~~~~~~~~
g++ struct.cc mcscan_h.cc read_homology.cc out_homology.cc dagchainer.cc msa.cc permutation.cc -o MCScanX_h
mcscan_h.cc: In function ‘int main(int, char**)’:
mcscan_h.cc:156:26: warning: ‘.collinearity’ directive writing 13 bytes into a region of size between 1 and 200 [-Wformat-overflow=]
156 | sprintf(align_fn, "%s.collinearity", prefix_fn);
| ^~~~~
mcscan_h.cc:156:12: note: ‘sprintf’ output between 14 and 213 bytes into a destination of size 200
156 | sprintf(align_fn, "%s.collinearity", prefix_fn);
| ~^~~~~~~~~~
Those look like warning messages, it might work anyway, did you try it? What is the final output line after after running make? If it doesn't say "Error" you are probably okay.
I'm having this error, please help me fix this. Thank you all
mcscan.cc:140:26: warning: ‘.collinearity’ directive writing 13 bytes into a region of size between 1 and 200 [-Wformat-overflow=] 140 | sprintf(align_fn, "%s.collinearity", prefix_fn); | ^
~~~~ mcscan.cc:140:12: note: ‘sprintf’ output between 14 and 213 bytes into a destination of size 200 140 | sprintf(align_fn, "%s.collinearity", prefix_fn); |~^~~~~~~~~~ g++ struct.cc mcscan_h.cc read_homology.cc out_homology.cc dagchainer.cc msa.cc permutation.cc -o MCScanX_h mcscan_h.cc: In function ‘int main(int, char**)’: mcscan_h.cc:156:26: warning: ‘.collinearity’ directive writing 13 bytes into a region of size between 1 and 200 [-Wformat-overflow=] 156 | sprintf(align_fn, "%s.collinearity", prefix_fn); | ^~~~~ mcscan_h.cc:156:12: note: ‘sprintf’ output between 14 and 213 bytes into a destination of size 200 156 | sprintf(align_fn, "%s.collinearity", prefix_fn); |~^~~~~~~~~~