且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

makefile错误:make:***没有规则使目标`omp.h';使用OpenMP

更新时间:2022-04-03 10:22:10

除非期望标准头文件发生更改,否则最简单的解决方案就是将其从先决条件列表中删除.

Unless you're expecting your standard header files to change, the simplest solution is just to remove them from the prerequisite list(s).

如果您不想执行上述操作,则需要指定 omp.h 的完整路径,或使用

If you don't want to do the above, then you'll either need to specify the complete path to omp.h, or use the VPATH mechanism.