wyp1125 / MCScanX

MCScanX: Multiple Collinearity Scan toolkit X version. The most popular synteny analysis tool in the world!
http://chibba.pgml.uga.edu/mcscan2/
219 stars 60 forks source link

error: ‘chdir’ was not declared in this scope ! #13

Closed jnarayan81 closed 3 years ago

jnarayan81 commented 6 years ago

jitendra@jitendra-UNLOCK-INSTALL[MCScanX] make [] g++ struct.cc mcscan.cc read_data.cc out_utils.cc dagchainer.cc msa.cc permutation.cc -o MCScanX msa.cc: In function ‘void msa_main(const char*)’: msa.cc:289:22: error: ‘chdir’ was not declared in this scope if (chdir(html_fn)<0) ^ makefile:2: recipe for target 'mcscanx' failed make: *** [mcscanx] Error 1

jebard commented 6 years ago

I had this same problem - added this line to the top of "msa.cc"

include

fearlessshi commented 5 years ago

g++ struct.cc mcscan.cc read_data.cc out_utils.cc dagchainer.cc msa.cc permutation.cc -o MCScanX msa.cc: In function \u2018void msa_main(const char*)\u2019: msa.cc:289:22: error: \u2018chdir\u2019 was not declared in this scope if (chdir(html_fn)<0) ^ makefile:2: recipe for target 'mcscanx' failed make: *** [mcscanx] Error 1

Debian 9