[mpich-discuss] Setting the mpi include path

Erhan.Erdogan at ankara.edu.tr Erhan.Erdogan at ankara.edu.tr
Mon May 7 01:21:37 CDT 2012


Dear Pavan,
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/
Erhan
-----Özgün İleti-----  From: Pavan Balaji  Sent: Sunday, May 06, 2012 5:16 
PM  To: mpich-discuss at mcs.anl.gov   Cc: Erhan.Erdogan at ankara.edu.tr 
Subject: Re: [mpich-discuss] Setting the mpi include path
Erhan,
If you have install mpich2, you should see "mpif90" as one of the
installed files.  Use that, instead of gfortran, to compile your
application.
  -- Pavan
On 05/06/2012 05:52 AM, Erhan.Erdogan at ankara.edu.tr wrote:
> Dear Group members,
> I just registered to this group and I’m quite new in linux. I installed
> the gfortran using the YasT. Then I downloaded the MPICH2.tar.gz and I
> opened the tar file following the instructions prepared by Pavan Balaji
> et al. 2011.
> After these I compile my code using
> gfortran –c MT2DFEM.f90 command
> Then I saw the ‘ Can’t open the include file ‘mpif.h’ ‘ error.
> Then I tried using the command
> gfortran –c MT2DFEM.f90 –I/home/jmg/mpich2-install/include
> command. It worked but this time it couldn’t find my personal include
> files.
> I think I have to set the mpich2 include path for gfortran.
> Thanks for the help
> Erhan
>
>
> _______________________________________________
> mpich-discuss mailing list     mpich-discuss at mcs.anl.gov
> To manage subscription options or unsubscribe:
> https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss
-- 
Pavan Balaji
http://www.mcs.anl.gov/~balaji
_______________________________________________
mpich-discuss mailing list     mpich-discuss at mcs.anl.gov
To manage subscription options or unsubscribe:
https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss 



More information about the mpich-discuss mailing list