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

Unresolved symbols

krmped
Beginner
733 Views

Hi.

I built a static library with Intel Fortran under MS Visual Studio 2005 sp1. It compiles without problems.

When I link my C++ application with the static library I get unresolved symbols that seems to come from the fortran library it self:

Performing Pre-Link Event...
Version Set to : 7.6.0.84
Linking...
QcxBlxIf.obj : warning LNK4249: directive '/CLRTHREADATTRIBUTE:STA' conflicts with command line; ignored
cDotNet.obj : warning LNK4249: directive '/CLRTHREADATTRIBUTE:STA' conflicts with command line; ignored
libifcore.lib(for_diags_intel.obj) : error LNK2019: unresolved external symbol __iob referenced in function _for__issue_diagnostic
libifcore.lib(for_nt_open_proc.obj) : error LNK2001: unresolved external symbol __iob
libm.lib(libm_error.obj) : error LNK2001: unresolved external symbol __iob
libifcore.lib(for_io_util.obj) : error LNK2019: unresolved external symbol __pctype referenced in function _for_check_env_name
libifcore.lib(tbk_traceback.obj) : error LNK2001: unresolved external symbol __pctype
libifcore.lib(for_io_util.obj) : error LNK2019: unresolved external symbol ___mb_cur_max referenced in function _for_check_env_name
libifcore.lib(tbk_traceback.obj) : error LNK2001: unresolved external symbol ___mb_cur_max
libifcore.lib(for_init.obj) : error LNK2019: unresolved external symbol __pxcptinfoptrs referenced in function _GETEXCEPTIONPTRSQQ
libifcore.lib(for_init.obj) : error LNK2019: unresolved external symbol ___argv referenced in function _for_rtl_init_.
libifcore.lib(for_init.obj) : error LNK2019: unresolved external symbol ___argc referenced in function _for_rtl_init_.
libifcore.lib(for_nt_open_proc.obj) : error LNK2019: unresolved external symbol _errno referenced in function _for__open_proc.
libifcore.lib(for_portlib.obj) : error LNK2001: unresolved external symbol _errno
libm.lib(libm_error.obj) : error LNK2001: unresolved external symbol _errno
......Binqcxqcxblxsvr30.exe : fatal error LNK1120: 7 unresolved externals
Project : warning PRJ0018 : The following environment variables were not found:
$(IFortInstallDir)
Build log was saved at "
file://c:FlsaDevQcxQcxBlx_Fortran_2QcxBlxSvr30ReleaseBuildLog.htm"
QcxBlxSvr30 - 14 error(s), 2 warning(s)

I have experimented a lot with the settings, but so far without any luck. How do I resolve this problem?

0 Kudos
1 Reply
Steven_L_Intel1
Employee
733 Views
Without seeing your project, I would have to guess that the library setting for your C++ project is not compatible with that of the Fortran project. If the C++ project is set to use multithread libraries them the Fortran project must also be set for that.
0 Kudos
Reply