Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当我运行构建由 matlab 生成的 c 代码的 make 文件时,出现以下错误。我相信我错过了包含一些库文件。但目前无法识别。任何输入都受到高度重视。
error: #error "must define number of sample times, NUMST" error: #error "must define NCSTATES" error: 'NUMST' undeclared here (not in a function)
我在模板 make 文件中删除了导致此错误的 rt_sim.o 和 rt_nonfinite.o。在 .tmf 文件中添加文件 rt_sim.o 和 rt_nonfinite.o 解决了该问题。再次感谢。– Be_bro