compile problem
Артемий
aaaaaa111111 at list.ru
Sat Dec 15 08:50:00 CST 2007
Description:
-----------
octave-2.9.18 and octave-2.9.19 don't compile with hdf5 compiled with mpi
support. Last error is:
In file included from /usr/include/mpi.h:1110,
from /usr/include/H5public.h:54,
from /usr/include/hdf5.h:24,
from ov.h:34,
from oct-obj.h:33,
from Cell.h:32,
from Cell.cc:29:
/usr/include/mpicxx.h:26:2: error: #error "SEEK_SET is #defined but must not
be for the C++ binding of MPI"
/usr/include/mpicxx.h:30:2: error: #error "SEEK_CUR is #defined but must not
be for the C++ binding of MPI"
/usr/include/mpicxx.h:35:2: error: #error "SEEK_END is #defined but must not
be for the C++ binding of MPI"
comment from mpicxx.h:
// There is a name conflict between stdio.h and the MPI C++ binding
// with respect to the names SEEK_SET, SEEK_CUR, and SEEK_END. MPI
// wants these in the MPI namespace, but stdio.h will #define these
// to integer values. #undef'ing these can cause obscure problems
// with other include files (such as iostream), so we instead use
// #error to indicate a fatal error. Users can either #undef
// the names before including mpi.h or include mpi.h *before* stdio.h
// or iostream.
This error means, that in Cell.cc (and in all other sources in .../src),
oct-obj.h (include hdf5) is AFTER idx-vector.h (include iostream) included.
localhost ~ # uname -a
Linux localhost 2.6.23-gentoo-r2 #1 SMP PREEMPT Sun Nov 18 22:03:31 MSK 2007
x86_64 AMD Athlon(tm) 64 Processor 3200+ AuthenticAMD GNU/Linux
gentoo-bug: http://bugs.gentoo.org/show_bug.cgi?id=202304
Fix:
---
hdf5.h must be included before iostream.
--
С уважением,
Шмелёв А.Г.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
Url : https://www.cae.wisc.edu/pipermail/bug-octave/attachments/20071215/98397437/attachment.bin
More information about the Bug-octave
mailing list