[Trilinos-Users] icpc: "Include mpi.h before stdio.h"
Littlewood, David John
djlittl at sandia.gov
Fri Dec 24 13:43:42 MST 2010
If you're using MPICH, this might help,
On 12/24/10 1:23 PM, "Nico Schlömer" <nico.schloemer at ua.ac.be> wrote:
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?
Trilinos-Users mailing list
Trilinos-Users at software.sandia.gov
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Trilinos-Users