[mpich-discuss] undefined reference to `__isoc99_sscanf'
Alison Boeckmann
alisonboeckmann at fastmail.fm
Fri Nov 12 10:39:34 CST 2010
I use mpif90 to link the execuatable.
This is when the error occurs.
If the executable is built, it is launched with mpirun on the Mac
On Fri, 12 Nov 2010 10:14:34 -0600 (CST), "Anthony Chan"
<chan at mcs.anl.gov> said:
>
> How do you link and run your program ? did you use MPI wrappers(mpif90)
> in linking and mpiexec to launch your app ?
>
> A.Chan
>
> ----- Original Message -----
> > I am installing mpich2-1.2.1p1 on Ubuntu 7.04 - the Feisty Fawn
> > (This is a virtual machine running on a dual core Mac, using OS
> > 10.5.8)
> > It installed perfectly on the native Mac.
> >
> > However when I try to run the same problem on Ubuntu, there is a
> > message
> > when the MPI library is linked with my code:
> >
> > /c/nm72ifort/mpi/mpi_lini/libmpich.a(argstr.o): In function
> > `MPIU_Str_get_binary_arg':
> > argstr.c:(.text+0xc53): undefined reference to `__isoc99_sscanf'
> >
> > There are no error messages during the make:
> > m.txt: CC
> > /home/aboeckma/mpich2-1.2.1p1/src/util/mem/argstr.c
> > m.txt: AR cr ../../../lib/libmpich.a trmem.o handlemem.o safestr.o
> > argstr.o
> >
> > The compiler is ifort, but it also happens with gfortran.
> > Is there a system library that is needed ?
> > --
> > Alison Boeckmann
> > alisonboeckmann at fastmail.fm
> >
> > _______________________________________________
> > mpich-discuss mailing list
> > mpich-discuss at mcs.anl.gov
> > https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss
--
Alison Boeckmann
alisonboeckmann at fastmail.fm
More information about the mpich-discuss
mailing list