[mpich-discuss] Setting the mpi include path
Pavan Balaji
balaji at mcs.anl.gov
Sun May 6 09:16:48 CDT 2012
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
More information about the mpich-discuss
mailing list