Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Maggie_m_
Beginner
108 Views

Compling error: undefined reference to `__isoc99_sscanf'

Hello, everyone, 

I tried to apply MKL to compile several fortran code. However, I got some errors below. Also, I attached the makefile. It seemed something was not linked.  Is there anyone who can give me some hints? Thanks! 

ifort  -w -fast -DMKL_ILP64 -m64  -c LinearSolverCSR.f
ifort  -L/pic/apps/intel/2015/composer_xe_2015.0.090/mkl/lib/intel64 -lmkl_intel_lp64 -lmkl_intel_thread -lmkl_blas95_lp64 -lmkl_blas95_ilp64 -lmkl_lapack95_lp64 -lmkl_sequential -liomp5 -lmkl_core  -openmp  -limf  inputmodule.o main.o readinputsize.o ALLOC.o MakeJac.o makeYbus.o red_ybus.o Ext2int_gen.o LinearSolverCSR.o -lm  -o ds 
 
ipo: warning #11021: unresolved __isoc99_sscanf
        Referenced in /pic/apps/intel/2015/composer_xe_2015.0.090/mkl/lib/intel64/libmkl_intel_thread.so
        Referenced in /pic/apps/intel/2015/composer_xe_2015.0.090/mkl/lib/intel64/libmkl_core.so
ipo: warning #11021: unresolved __isoc99_fscanf
        Referenced in /pic/apps/intel/2015/composer_xe_2015.0.090/mkl/lib/intel64/libmkl_core.so
/pic/apps/intel/2015/composer_xe_2015.0.090/mkl/lib/intel64/libmkl_intel_thread.so: undefined reference to `__isoc99_sscanf'
/pic/apps/intel/2015/composer_xe_2015.0.090/mkl/lib/intel64/libmkl_core.so: undefined reference to `__isoc99_fscanf'
make: *** [ds] Error 1
 
 
PLAT = _OPENMP
 11 
 12 FC = ifort
 13 CC = icc
 14 
 15 MKLDIR = /apps/intel/2015/composer_xe_2015.0.090/mkl
 16 
 17 FFLAGS = -w -fast -DMKL_ILP64 -m64
 18 CFLAGS = -w -fast -DMKL_ILP64 -m64
 19 
 20 INCLUDES = -I$(MKLDIR)/include
 21 LFLAGS = -L$(MKLDIR)/lib/intel64 -lmkl_intel_lp64 \
 22          -lmkl_intel_thread -lmkl_blas95_lp64 -lmkl_blas95_ilp64 -lmkl_lapack95_lp64 \
 23          -lmkl_sequential -liomp5 -lmkl_core  -openmp  -limf
 24 
 25 OBJS =  inputmodule.o main.o readinputsize.o ALLOC.o MakeJac.o makeYbus.o red_ybus.o Ext2int_gen.o LinearSolverCSR.o
 26 
 27 ALL_OBJ = $(OBJS)
 28 
 29 %.o: %.f
 30         $(FC) $(FFLAGS) -c $<
 31 
 32 %.o: %.c
 33         $(CC) #(CFLAGS) -c $< -o $@
 34 
 35 ds:  $(ALL_OBJ)
 36         $(FC) $(LFLAGS) $(ALL_OBJ) -lm  -o ds 
 37 
 38 clean:
 39         rm -rf *.o *.mod *.out *.chk ds
0 Kudos
1 Reply
Gennady_F_Intel
Moderator
108 Views

Hello,

This is a known problem has been fixed in the next updates of Intel MKL ( > 11.2 update 1 ).

--Gennady