[mpich-discuss] Setting the mpi include path

Pavan Balaji balaji at mcs.anl.gov
Mon May 7 07:13:47 CDT 2012


On 05/07/2012 01:21 AM, Erhan.Erdogan at ankara.edu.tr wrote:
> I tried to compile my code using 'mpif90' command. It gives the same error
> message: ' Can't open the included file 'mpif.h'. How can I change the
> include path? Did I install the mpich2 to wrong directory?
> /home/jmg/mpich2-install/include/

You should use mpif90 from wherever you installed mpich2.  In this case 
from /home/jmg/mpich2-install/bin

  -- Pavan

-- 
Pavan Balaji
http://www.mcs.anl.gov/~balaji


More information about the mpich-discuss mailing list