[mpich-discuss] undefined reference to `__isoc99_sscanf'

Alison Boeckmann alisonboeckmann at fastmail.fm
Fri Nov 12 09:35:37 CST 2010


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



More information about the mpich-discuss mailing list