Still about the MPICH and Intel Fortran Compiler:

Craig Tierney ctierney at hpti.com
Wed Oct 8 13:16:03 EDT 2003


On Tue, 2003-10-07 at 19:58, Ao Jiang wrote:
>   Hi,
>   First, I want to thank all of you for the answers and suggestions
> for my question last time.
> (
> Last time, I tried:
> "
> ifc -I /opt/mpich-1.2.5/include -Lmpi -w -Lm -o p_wg3 p_fdtd3dwg3_pml.f90
> "
>  The system failed to compile it and gave me the following information:
> "
>    module EHFIELD
>    program FDTD3DPML
>    external function RISEF
> 
> 3228 Lines Compiled
> /tmp/ifcVao851.o(.text+0x5a): In function `main':
> : undefined reference to `mpi_init_'

The option -L specifies the path for libraries.
The option -l specifies the library to link.

Your command should be:

ifc -I/opt/mpich-1.2.5/include -L/opt/mpich-1.2.5/lib -lmpi -w -lm -o
p_wg3 p_fdtd3dwg3_pml.f90

Craig


> .
> .
> .
> )
> 
>   Most of friends suggest me to use '-lmpi', instead of '-Lmpi', I tried
> it, the system gave me the following error:
> "
> ifc -I/opt/mpich-1.2.5/include -lmpi -w -o p_wg3 p_fdtd3dwg3_pml.f90
> 
>    module EHFIELD
>    program FDTD3DPML
>    external function RISEF
>    external subroutine COM_HZY
> 
> 3228 Lines Compiled
> ld: cannot find -lmpi
> "
>  either does '-lmpif', although there exist 'mpif.h' and 'mpi.h' in the
> directory '/opt/mpich-1.2.5/include'.
> 
> I also tried the command:
> "
> /opt/mpich-1.2.5/bin/mpif90 -w -o p_wg3 p_fdtd3dwg3_pml.f90
> "
> 
> The system gave the error:
> "
> 3228 Lines Compiled
> /opt/intel/compiler70/ia32/lib/libIEPCF90.a(f90fioerr.o)(.text+0x4d3): In
> function `f_f77ioerr':
> : undefined reference to `__ctype_b'
> "
> 
> In fact, I don't know what this error means. Of course, I don't know
> how to slove it either.
> 
> Tom
> 
> 
> _______________________________________________
> Beowulf mailing list, Beowulf at beowulf.org
> To change your subscription (digest mode or unsubscribe) visit http://www.beowulf.org/mailman/listinfo/beowulf
-- 
Craig Tierney <ctierney at hpti.com>

_______________________________________________
Beowulf mailing list, Beowulf at beowulf.org
To change your subscription (digest mode or unsubscribe) visit http://www.beowulf.org/mailman/listinfo/beowulf



More information about the Beowulf mailing list