wen I try to make this code,it reports that:
/usr/bin/ld: iHS_soft.o:/home/lsg/tools/HaploSweep-1.0/myutil.h:676: multiple definition of starts_thread'; myutil.o:/home/lsg/tools/HaploSweep-1.0/myutil.h:676: first defined here /usr/bin/ld: iHS_soft.o:/home/lsg/tools/HaploSweep-1.0/myutil.h:677: multiple definition ofends_thread'; myutil.o:/home/lsg/tools/HaploSweep-1.0/myutil.h:677: first defined here
/usr/bin/ld: iHS_soft.o:/home/lsg/tools/HaploSweep-1.0/myfunction.h:70: multiple definition of line'; myfunction.o:/home/lsg/tools/HaploSweep-1.0/myfunction.h:70: first defined here /usr/bin/ld: iHS_soft.o:/home/lsg/tools/HaploSweep-1.0/myfunction.h:71: multiple definition ofloginfo'; myfunction.o:/home/lsg/tools/HaploSweep-1.0/myfunction.h:71: first defined here
/usr/bin/ld: iHS_soft.o:/home/lsg/tools/HaploSweep-1.0/myutil.h:721: multiple definition of queue_for_write_file'; myutil.o:/home/lsg/tools/HaploSweep-1.0/myutil.h:721: first defined here /usr/bin/ld: iHS_soft.o:/home/lsg/tools/HaploSweep-1.0/myutil.h:720: multiple definition ofqueue_for_read_file'; myutil.o:/home/lsg/tools/HaploSweep-1.0/myutil.h:720: first defined here
/usr/bin/ld: iHS_soft.o:/home/lsg/tools/HaploSweep-1.0/myfunction.h:73: multiple definition of avx_bit'; myfunction.o:/home/lsg/tools/HaploSweep-1.0/myfunction.h:73: first defined here /usr/bin/ld: iHS_soft.o:/home/lsg/tools/HaploSweep-1.0/myfunction.h:72: multiple definition ofl_line'; myfunction.o:/home/lsg/tools/HaploSweep-1.0/myfunction.h:72: first defined here
collect2: error: ld returned 1 exit status
make: *** [makefile:8:HaploSweep] 错误 1
how can I solve this question?
Thank you very much for your feedback. This error may be due to the GCC version. We have included the compiled executable file in the 'Bin' folder, which you can download and run directly.
wen I try to make this code,it reports that: /usr/bin/ld: iHS_soft.o:/home/lsg/tools/HaploSweep-1.0/myutil.h:676: multiple definition of
starts_thread'; myutil.o:/home/lsg/tools/HaploSweep-1.0/myutil.h:676: first defined here /usr/bin/ld: iHS_soft.o:/home/lsg/tools/HaploSweep-1.0/myutil.h:677: multiple definition of
ends_thread'; myutil.o:/home/lsg/tools/HaploSweep-1.0/myutil.h:677: first defined here /usr/bin/ld: iHS_soft.o:/home/lsg/tools/HaploSweep-1.0/myfunction.h:70: multiple definition ofline'; myfunction.o:/home/lsg/tools/HaploSweep-1.0/myfunction.h:70: first defined here /usr/bin/ld: iHS_soft.o:/home/lsg/tools/HaploSweep-1.0/myfunction.h:71: multiple definition of
loginfo'; myfunction.o:/home/lsg/tools/HaploSweep-1.0/myfunction.h:71: first defined here /usr/bin/ld: iHS_soft.o:/home/lsg/tools/HaploSweep-1.0/myutil.h:721: multiple definition ofqueue_for_write_file'; myutil.o:/home/lsg/tools/HaploSweep-1.0/myutil.h:721: first defined here /usr/bin/ld: iHS_soft.o:/home/lsg/tools/HaploSweep-1.0/myutil.h:720: multiple definition of
queue_for_read_file'; myutil.o:/home/lsg/tools/HaploSweep-1.0/myutil.h:720: first defined here /usr/bin/ld: iHS_soft.o:/home/lsg/tools/HaploSweep-1.0/myfunction.h:73: multiple definition ofavx_bit'; myfunction.o:/home/lsg/tools/HaploSweep-1.0/myfunction.h:73: first defined here /usr/bin/ld: iHS_soft.o:/home/lsg/tools/HaploSweep-1.0/myfunction.h:72: multiple definition of
l_line'; myfunction.o:/home/lsg/tools/HaploSweep-1.0/myfunction.h:72: first defined here collect2: error: ld returned 1 exit status make: *** [makefile:8:HaploSweep] 错误 1 how can I solve this question?