Open MPI logo

Open MPI User's Mailing List Archives

  |   Home   |   Support   |   FAQ   |  

This web mail archive is frozen.

This page is part of a frozen web archive of this mailing list.

You can still navigate around this archive, but know that no new mails have been added to it since July of 2016.

Click here to be taken to the new web archives of this list; it includes all the mails that are in this frozen archive plus all new mails that have been sent to the list since it was migrated to the new archives.

Subject: Re: [OMPI users] compilation error about Open Macro when building the code with OpenMPI on Mac OS 10.5.5
From: Jed Brown (jed_at_[hidden])
Date: 2008-10-08 15:34:57


On Wed, Oct 8, 2008 at 21:19, Sudhakar Mahalingam <sudhakar_at_[hidden]> wrote:
> I am having a problem about "Open" Macro's number of arguments, when I try
> to build a C++ code with the openmpi-1.2.7 on my Mac OS 10.5.5 machine. The
> error message is given below. When I look at the file.h and file_inln.h
> header files in the cxx folder, I am seeing that the "Open" function indeed
> takes four arguments but I don't know why there is this error about the
> number of arguments of 4. Does anyone else seen this type of error before ?.

MPI::File::Open is an inline function, not a macro. You must have an
unqualified Open macro defined in this compilation unit. Maybe in one
of the headers that were included in your code before hdf5.h. Does it
work if you include hdf5.h first?

Jed