删除汇编单元后,如何避免清洁编译?
我从项目中删除了一些文件(spring.cpp / spring.h)(在任何地方都不再引用)。但是运行make
抱怨这些文件丢失了。
clang: error: no such file or directory: '/Workspace/newgame/sandbox/src/components/Spring.cpp'
clang: error: no input files
make[2]: *** [sandbox/CMakeFiles/game.dir/src/components/Spring.cpp.o] Error 1
make[1]: *** [sandbox/CMakeFiles/game.dir/all] Error 2
运行cmake ..
,然后 make 修复了此问题。但是再生需要永远。必须有更好的方法
I removed a few files (Spring.cpp / Spring.h) from my project (no longer referenced anywhere). But running make
complains that those files are missing.
clang: error: no such file or directory: '/Workspace/newgame/sandbox/src/components/Spring.cpp'
clang: error: no input files
make[2]: *** [sandbox/CMakeFiles/game.dir/src/components/Spring.cpp.o] Error 1
make[1]: *** [sandbox/CMakeFiles/game.dir/all] Error 2
running cmake ..
and then make
fixes this. but regenerating takes forever. There has to be a better way
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论