MPI编译C++程序出现#error "SEEK_SET is #defined but must not be for the C++ binding of MPI" 的解决方法
来源:互联网 发布:淘宝饰品包邮怎么挣钱 编辑:程序博客网 时间:2024/06/05 14:26
MPI的mpicc和mpicxx命令编译C++程序时,可能会遇到如下三种错误信息:
#error "SEEK_SET is #defined but must not be for the C++ binding of MPI"
#error "SEEK_CUR is #defined but must not be for the C++ binding of MPI"
#error "SEEK_END is #defined but must not be for the C++ binding of MPI"
原因:
Is the result of a name conflict between stdio.h and the MPI C++ binding.
解决方法
Users should place the mpi include before the stdio.h and iostream includes.
简单的就,就是头文件包含的顺序问题,可能是把#include <iostream>放在了#include "mpi.h"的前面,才出现了如此莫名其妙的错误……
把#include "mpi.h"放在最前面就OK了。
参考:http://www.nics.tennessee.edu/node/295
- MPI编译C++程序出现#error "SEEK_SET is #defined but must not be for the C++ binding of MPI" 的解决方法
- MPI编译C++程序出现#error "SEEK_SET is #defined but must not be for the C++ binding of MPI" 的解决方法
- MPI + C 的hello world程序
- 常用SConstruct例子:编译C,Pthreads和MPI程序
- MPI程序例子 test_8_1_2.c -- 对等模式的MPI程序,Jacobi迭代 (MPI_Send、MPI_Recv)
- 解决dubbo的vc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for
- Prog1: helloworld.c 最简单的MPI程序
- Ubuntu14.04 | 编写makefile脚本执行MPI的.c程序
- Linux下运行包含MPI调用接口的C程序
- MPI+CUDA混合程序的编译命令
- nginx 交叉编译 ( checking for C compiler found but is not working )
- C#MPI 第一课 MPI HelloWord
- C#MPI 第一课 MPI HelloWord
- Apktool编译出现“error: Public symbol aaa/bbb declared here is not defined.”的解决办法
- MPI + C 广播操作
- PIL写入字体出现ImportError:The _imagingft C module is not installed 错误的解决方法
- s:property must be empty, but is not。
- struts2: tag s:property must be empty, but is not
- SQLite3 - 文件锁和同步机制
- 在Ubuntu?下快速安装IE浏览器
- ListView中的bug
- Spring 声明式事务的配置方式(一)
- & 后台执行命令
- MPI编译C++程序出现#error "SEEK_SET is #defined but must not be for the C++ binding of MPI" 的解决方法
- Linux启动过程综述
- concat 和 group_concat的陷阱
- png图片在IE下透明实现方法
- System.Data.SqlClient.SqlError: 备份集中的数据库备份与现有的 '***' 数据库不同。 (Microsoft.SqlServer.Smo)
- IBM T60新加硬盘无法引导问题解决
- C/C++中Static的作用详述
- Is it harder to learn English for an adult?
- MySQL基础