Chinaunix首页 | 论坛 | 博客
  • 博客访问: 175511
  • 博文数量: 37
  • 博客积分: 1690
  • 博客等级: 上尉
  • 技术积分: 468
  • 用 户 组: 普通用户
  • 注册时间: 2010-09-13 21:30
文章分类

全部博文(37)

文章存档

2011年(19)

2010年(18)

我的朋友

分类:

2010-09-15 16:09:46

Some users may get error messages such as

		SEEK_SET is #defined but must not be for the C++ binding of MPI	

The problem is that both stdio.h and the MPI C++ interface use SEEK_SET, SEEK_CUR, and SEEK_END. This is really a bug in the MPI-2 standard. You can try adding

		#undef SEEK_SET
#undef SEEK_END
#undef SEEK_CUR

before mpi.h is included, or add the definition

		-DMPICH_IGNORE_CXX_SEEK

to the command line (this will cause the MPI versions of SEEK_SET etc. to be skipped).

最简单的方法是在Makefile里的这一行加上:

CXXFLAGS = -DMPICH_IGNORE_CXX_SEEK

编译就可以通过了

阅读(1074) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~