我在C++中得到了以下代码if(should_run_make){std::stringmake="make-C";make.append(outdir);std::cout报告如下:Makecmdismake-C/home/hamiltont/temp/make:Enteringdirectory/home/hamiltont/temp'make:***Notargets.Stop.make:Leavingdirectory/home/hamiltont/temp'但是,以多种方式手动执行此操作效果很好,例如[hamiltont@4generator]$make-C/home/ham