[Trilinos-Users] icpc: "Include mpi.h before stdio.h"
nico.schloemer at ua.ac.be
Fri Dec 24 13:23:12 MST 2010
a little compiler weirdness appears here when building on of my Trilinos
apps on the university HPC (with icpc (ICC) 11.1 20090630)
catastrophic error: #error directive: "SEEK_SET is #defined but must not
be for the C++ binding of MPI. Include mpi.h before stdio.h"
#error "SEEK_SET is #defined but must not be for the C++ binding of
MPI. Include mpi.h before stdio.h"
Somehow, the compiler doesn't like the inclusion of mpi.h to be preceded
by stdio.h, which is what happens though when including, e.g.,
I'm not sure what the proper fix for this would be. For now I just put
at the start of the respective header file. Anyone else with this?
More information about the Trilinos-Users