您好,欢迎来到尚车旅游网。
搜索
您的当前位置:首页【IT专家】致命错误-mpi。h-没有这样的文件或目录#包含。

【IT专家】致命错误-mpi。h-没有这样的文件或目录#包含。

来源:尚车旅游网
【IT专家】致命错误-mpi。h-没有这样的文件或目录#包含。

致命错误:mpi。h:没有这样的文件或目录#包含。

致命错误:mpi。h:没有这样的文件或目录#包含。[英]fatal error: mpi.h: No such

file or directory #include it tells me that there is no such file or directory. But when i include the path to mpi.h as

它告诉我没有这样的文件或目录。但是当我包含到mpi 的路径时。h 作为

#include “/usr/include/mpi/mpi.h” (the path is correct) it returns:

(路径正确)返回:

In file included from /usr/include/mpi/mpi.h:2087:0, from http://www..com/doc/218540511.html,:7:/usr/include/mpi/openmpi/ompi/mpi/cxx/mpicxx.h:35:17: fatal error: mpi.h: No such file or directory #include “mpi.h”compilation terminated. Anyone know how to fix this?

有人知道怎么修复吗? 24

The problem is almost certainly that you’re not using the MPI compiler wrappers. Whenever you’re compiling an MPI program, you should use the MPI wrappers:

几乎可以肯定的是,您没有使用MPI 编译器包装器。无论何时编译MPI 程序,

都应该使用MPI 包装器:

C - mpicc C - mpicc C++ - mpiCC, mpicxx, mpic++ c++ - mpiCC, mpicxx, mpic+ FORTRAN - mpifort, mpif77, mpif90 FORTRAN - mpifort, mpif77, mpif90 These wrappers do all of the dirty work for you of making sure that all of the appropriate compiler flags, libraries, include directories, library directories,

etc. are included when you compile your program.

这些包装器为您做了所有肮脏的工作,以确保在编译程序时包含所有适当的编译

器标志、库、包括目录、库目录等。

in the include path takes care of this (in my case) 在include 路径中处理这个(在我的例子中)

因篇幅问题不能全部显示,请点此查看更多更全内容

Copyright © 2019- sceh.cn 版权所有

违法及侵权请联系:TEL:199 1889 7713 E-MAIL:2724546146@qq.com

本站由北京市万商天勤律师事务所王兴未律师提供法律服务