error: ‘chdir’ was not declared in this scope 装软件superpose3D时遇到这个错误,解决方法是添加如下行到文件的开头: #include <unistd.h>