yes, that's the reason why I can not compile my codes. It has been solved now, thank you all for the helps!<br><br>Regards,<br>Xin<br><br><div class="gmail_quote">On Tue, Jan 26, 2010 at 8:30 PM, Justin Luitjens <span dir="ltr"><<a href="mailto:luitjens@cs.utah.edu">luitjens@cs.utah.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">I saw a similar problem on Kraken, it turned out that I was using a C<br>
compiler instead of a C++ compiler.<br>
<font color="#888888"><br>
Justin<br>
</font><div><div></div><div class="h5"><br>
On Mon, Jan 25, 2010 at 12:37 PM, Jeff Squyres <<a href="mailto:jsquyres@cisco.com">jsquyres@cisco.com</a>> wrote:<br>
> On Jan 25, 2010, at 2:32 PM, Dave Goodell wrote:<br>
><br>
>> I can't remember off the top of my head if this is required behavior<br>
>> according to the MPI Standard, but it looks like OpenMPI does the same<br>
>> thing.<br>
><br>
> MPI requires that "mpi.h" work in both C and C++ contexts.<br>
><br>
> But I can definitely see that<br>
><br>
> extern "C" {<br>
> #include "mpi.h"<br>
> }<br>
><br>
> would be problematic if compiled by a C++ compiler.<br>
><br>
> --<br>
> Jeff Squyres<br>
> <a href="mailto:jsquyres@cisco.com">jsquyres@cisco.com</a><br>
><br>
</div></div><div><div></div><div class="h5">> _______________________________________________<br>
> mpich-discuss mailing list<br>
> <a href="mailto:mpich-discuss@mcs.anl.gov">mpich-discuss@mcs.anl.gov</a><br>
> <a href="https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss" target="_blank">https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss</a><br>
><br>
><br>
_______________________________________________<br>
mpich-discuss mailing list<br>
<a href="mailto:mpich-discuss@mcs.anl.gov">mpich-discuss@mcs.anl.gov</a><br>
<a href="https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss" target="_blank">https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss</a><br>
</div></div></blockquote></div><br>