Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
29273 Discussions

inter fortran ,Programming mistakes, experts urged!

Bo_i_
Beginner
603 Views

Environment: Intel Parallel Studio XE 2013 with VS2010
Note: Before the program can be successfully compiled to run under CompaqVisualFortran
Error message:

Linking...
1>test_srif.obj : error LNK2019: 无法解析的外部符号 _MODUL_SRIF_mp_SRIF_TIMEUPD1@8,该符号在函数 _TEST_SRIF 中被引用
1>DFOR.LIB(for_diags.obj) : error LNK2019: 无法解析的外部符号 __sys_nerr,该符号在函数 _for__gerror@8 中被引用
1>DFOR.LIB(for_init.obj) : error LNK2019: 无法解析的外部符号 ___argv,该符号在函数 _for_rtl_init_ 中被引用
1>DFOR.LIB(for_init.obj) : error LNK2019: 无法解析的外部符号 ___argc,该符号在函数 _for_rtl_init_ 中被引用
1>DFOR.LIB(for_init.obj) : error LNK2019: 无法解析的外部符号 __pctype,该符号在函数 _build_args_from_cmdline 中被引用
1>DFOR.LIB(for_io_util.obj) : error LNK2001: 无法解析的外部符号 __pctype
1>DFOR.LIB(for_init.obj) : error LNK2019: 无法解析的外部符号 ___mb_cur_max,该符号在函数 _build_args_from_cmdline 中被引用
1>DFOR.LIB(for_io_util.obj) : error LNK2001: 无法解析的外部符号 ___mb_cur_max
1>DFOR.LIB(for_init.obj) : error LNK2019: 无法解析的外部符号 __pxcptinfoptrs,该符号在函数 _GETEXCEPTIONPTRSQQ@0 中被引用
1>DFOR.LIB(for_m_qqs.obj) : error LNK2019: 无法解析的外部符号 _errno,该符号在函数 _flush_nonadv_buffers 中被引用
1>DFOR.LIB(for_portlib.obj) : error LNK2001: 无法解析的外部符号 _errno
1>DFOR.LIB(intrin.obj) : error LNK2001: 无法解析的外部符号 ___fastflag

what should i do to solove the problem?

thanks!

0 Kudos
1 Reply
Steven_L_Intel1
Employee
603 Views

You are linking with CVF's DFOR.LIB, which will not work with Intel Fortran. Make sure that all your Fortran sources are recompiled with Intel Fortran and that you have removed all references to CVF libraries from your build options.

0 Kudos
Reply