ChenHuaLab / HaploSweep

HaploSweep is a method for detecting and categorizing soft and hard selective sweeps based on haplotype structure.
Apache License 2.0
9 stars 1 forks source link

multiple definition of variable #1

Open Luo-Shigan opened 2 months ago

Luo-Shigan commented 2 months ago

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?

ChenHuaLab commented 2 months ago

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.