unresolved external: intel_f2int plus others

unresolved external: intel_f2int plus others

chstoyer's picture

I am setting up a new computer using Win 7 Home Premium. I am currently working on a Win XP machine with CVF 6.6b and Winteracter library 7.1

New machine has Visual Studio 2005 and Intel Fortran 9.1 (which I bought about 5 years ago as upgrade and never really used). I am using Winteracter 9.0, which is the latest version.

I am trying to get up to speed waiting for the release of Intel's newest Fortran to work with Visual Studio 2010 (and Winteracter too). Then I plan to upgrade to the 21st century.

Poking around the Internet it seems that intel_f2int is part of the Fortran runtime library. So it should be found without my having to do anything (I had to include a lot of extra libraries to make it work with Winteracter). This is in fact called from Winteracter routines,

There are many other routines that are not found, all looking like they might well be in the Fortran runtime library.

I tried Build/Rebuild and that did not seem to make any difference. I get 410 unresolved externals (many duplicated) whether I compile for release or debug.

Any suggestions would be great. I am trying to get out of the CVF because I see the handwriting on the wall that Windows is moving away from 32-bit.

Charles

6 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.
Steve Lionel (Intel)'s picture

It seems likely that you have your build set up to not automatically reference the Intel libraries. Can you attach the buildlog.htm after a full rebuild of the project? That will show me what settings you're using.

Steve
chstoyer's picture

I can't figure out how to attach a file. I tried Add Files and I can't open the folder where the htm file is.

So I am attaching as text. I hope that's OK. Had to delete some of the messages though.

Charles

------ Build started: Project: WIpxLib, Configuration: Debug|Win32 ------


Deleting intermediate files and output files for project 'WIpxLib', configuration 'Debug|Win32'.

Performing Custom Build Step...

rc wipxlib.rc

Compiling with Intel Fortran 9.1 C:\Program Files (x86)\Intel\Compiler\Fortran\9.1\IA32\...

ifort /nologo /Zi /Od /module:"Debug/" /object:"Debug/" /traceback /check:bounds /libs:static /threads /dbglibs /winapp /c  /Qvc8 /Qlocation,link,"C:\Program Files (x86)\Microsoft Visual Studio 8\VC\bin" "C:\WIPXLib\LINSID.F90"

ifort /nologo /Zi /Od /module:"Debug/" /object:"Debug/" /traceback /check:bounds /libs:static /threads /dbglibs /winapp /c  /Qvc8 /Qlocation,link,"C:\Program Files (x86)\Microsoft Visual Studio 8\VC\bin" "C:\WIPXLib\Ifloor.f90"

ifort /nologo /Zi /Od /module:"Debug/" /object:"Debug/" /traceback /check:bounds /libs:static /threads /dbglibs /winapp /c  /Qvc8 /Qlocation,link,"C:\Program Files (x86)\Microsoft Visual Studio 8\VC\bin" "C:\WIPXLib\XYIsect.f90"

ifort /nologo /Zi /Od /module:"Debug/" /object:"Debug/" /traceback /check:bounds /libs:static /threads /dbglibs /winapp /c  /Qvc8 /Qlocation,link,"C:\Program Files (x86)\Microsoft Visual Studio 8\VC\bin" "C:\WIPXLib\Sort.f90"

ifort /nologo /Zi /Od /module:"Debug/" /object:"Debug/" /traceback /check:bounds /libs:static /threads /dbglibs /winapp /c  /Qvc8 /Qlocation,link,"C:\Program Files (x86)\Microsoft Visual Studio 8\VC\bin" "C:\WIPXLib\Regres.f90"

ifort /nologo /Zi /Od /module:"Debug/" /object:"Debug/" /traceback /check:bounds /libs:static /threads /dbglibs /winapp /c  /Qvc8 /Qlocation,link,"C:\Program Files (x86)\Microsoft Visual Studio 8\VC\bin" "C:\WIPXLib\Splines.f90"

ifort /nologo /Zi /Od /module:"Debug/" /object:"Debug/" /traceback /check:bounds /libs:static /threads /dbglibs /winapp /c  /Qvc8 /Qlocation,link,"C:\Program Files (x86)\Microsoft Visual Studio 8\VC\bin" "C:\WIPXLib\resource.F90"

ifort /nologo /Zi /Od /module:"Debug/" /object:"Debug/" /traceback /check:bounds /libs:static /threads /dbglibs /winapp /c  /Qvc8 /Qlocation,link,"C:\Program Files (x86)\Microsoft Visual Studio 8\VC\bin" "C:\WIPXLib\POLYUTIL.f90"

ifort /nologo /Zi /Od /module:"Debug/" /object:"Debug/" /traceback /check:bounds /libs:static /threads /dbglibs /winapp /c  /Qvc8 /Qlocation,link,"C:\Program Files (x86)\Microsoft Visual Studio 8\VC\bin" "C:\WIPXLib\PTLPOLY.f90"

ifort /nologo /Zi /Od /module:"Debug/" /object:"Debug/" /traceback /check:bounds /libs:static /threads /dbglibs /winapp /c  /Qvc8 /Qlocation,link,"C:\Program Files (x86)\Microsoft Visual Studio 8\VC\bin" "C:\WIPXLib\Gngrid.F90"

ifort /nologo /Zi /Od /module:"Debug/" /object:"Debug/" /traceback /check:bounds /libs:static /threads /dbglibs /winapp /c  /Qvc8 /Qlocation,link,"C:\Program Files (x86)\Microsoft Visual Studio 8\VC\bin" "C:\WIPXLib\ELIPSE.F90"

ifort /nologo /Zi /Od /module:"Debug/" /object:"Debug/" /traceback /check:bounds /libs:static /threads /dbglibs /winapp /c  /Qvc8 /Qlocation,link,"C:\Program Files (x86)\Microsoft Visual Studio 8\VC\bin" "C:\WIPXLib\Plysig.f90"

ifort /nologo /Zi /Od /module:"Debug/" /object:"Debug/" /traceback /check:bounds /libs:static /threads /dbglibs /winapp /c  /Qvc8 /Qlocation,link,"C:\Program Files (x86)\Microsoft Visual Studio 8\VC\bin" "C:\WIPXLib\FileHand.f90"

ifort /nologo /Zi /Od /module:"Debug/" /object:"Debug/" /traceback /check:bounds /libs:static /threads /dbglibs /winapp /c  /Qvc8 /Qlocation,link,"C:\Program Files (x86)\Microsoft Visual Studio 8\VC\bin" "C:\WIPXLib\Strings.f90"

ifort /nologo /Zi /Od /module:"Debug/" /object:"Debug/" /traceback /check:bounds /libs:static /threads /dbglibs /winapp /c  /Qvc8 /Qlocation,link,"C:\Program Files (x86)\Microsoft Visual Studio 8\VC\bin" "C:\WIPXLib\CRSCHK.f90"

ifort /nologo /Zi /Od /module:"Debug/" /object:"Debug/" /traceback /check:bounds /libs:static /threads /dbglibs /winapp /c  /Qvc8 /Qlocation,link,"C:\Program Files (x86)\Microsoft Visual Studio 8\VC\bin" "C:\WIPXLib\Plotxy.f90"

ifort /nologo /Zi /Od /module:"Debug/" /object:"Debug/" /traceback /check:bounds /libs:static /threads /dbglibs /winapp /c  /Qvc8 /Qlocation,link,"C:\Program Files (x86)\Microsoft Visual Studio 8\VC\bin" "C:\WIPXLib\Ipxl95.f90"

ifort /nologo /Zi /Od /module:"Debug/" /object:"Debug/" /traceback /check:bounds /libs:static /threads /dbglibs /winapp /c  /Qvc8 /Qlocation,link,"C:\Program Files (x86)\Microsoft Visual Studio 8\VC\bin" "C:\WIPXLib\WintLib.f90"

Linking...

Creating temporary file "RSP1.rsp" with contents
[
 /OUT:"Debug/WIpxLib.exe" /INCREMENTAL:NO /NOLOGO /MANIFEST /MANIFESTFILE:"C:\WIpxLib\debug\wipxlib.exe.intermediate.manifest" /DEBUG /PDB:"Debug/WIpxLib.pdb" /SUBSYSTEM:WINDOWS  "Debug/LINSID.obj" "Debug/Ifloor.obj" "Debug/XYIsect.obj" "Debug/Sort.obj" "Debug/Regres.obj" "Debug/Splines.obj" "Debug/resource.obj" "Debug/POLYUTIL.obj" "Debug/PTLPOLY.obj" "Debug/Gngrid.obj" "Debug/ELIPSE.obj" "Debug/Plysig.obj" "Debug/FileHand.obj" "Debug/Strings.obj" "Debug/CRSCHK.obj" "Debug/Plotxy.obj" "Debug/Ipxl95.obj" "Debug/WintLib.obj" "wipxlib.res" "C:\Program Files (x86)\Microsoft Visual Studio 8\VC\PlatformSDK\Lib\AMD64\Gdi32.Lib" "C:\Program Files (x86)\Microsoft Visual Studio 8\VC\PlatformSDK\Lib\AMD64\User32.Lib" "C:\Program Files (x86)\Microsoft Visual Studio 8\VC\PlatformSDK\Lib\AMD64\AdvAPI32.Lib" "C:\Program Files (x86)\Microsoft Visual Studio 8\VC\PlatformSDK\Lib\AMD64\WinMM.Lib" "C:\Program Files (x86)\Microsoft Visual Studio 8\VC\PlatformSDK\Lib\AMD64\Shell32.Lib" "C:\Program Files (x86)\Microsoft Visual Studio 8\VC\PlatformSDK\Lib\AMD64\Htmlhelp.Lib" "C:\Program Files (x86)\Microsoft Visual Studio 8\VC\PlatformSDK\Lib\AMD64\ComDlg32.Lib" "C:\Program Files (x86)\Microsoft Visual Studio 8\VC\PlatformSDK\Lib\AMD64\WinSpool.Lib" "C:\wint\lib.if8\winter.lib" "C:\Program Files (x86)\Microsoft Visual Studio 8\VC\PlatformSDK\Lib\AMD64\Kernel32.Lib"
]
Creating command line "Link @"C:\WIpxLib\Debug\RSP1.rsp""


Link: executing 'link'
winter.lib(igrfileinfo.obj) : error LNK2019: unresolved external symbol ___intel_f2int referenced in function _IGRFILEINFO
winter.lib(yydith2.obj) : error LNK2001: unresolved external symbol ___intel_f2int

snip




LIBCMTD.lib(tzset.obj) : error LNK2019: unresolved external symbol __imp__GetTimeZoneInformation@4 referenced in function __tzset_nolock LIBCMTD.lib(putwch.obj) : error LNK2019: unresolved external symbol __imp__WriteConsoleA@20 referenced in function __putwch_nolock LIBCMTD.lib(putwch.obj) : error LNK2019: unresolved external symbol __imp__GetConsoleOutputCP@0 referenced in function __putwch_nolock LIBCMTD.lib(pdblkup.obj) : error LNK2019: unresolved external symbol __imp__VirtualQuery@12 referenced in function "int __cdecl _RTC_GetSrcLine(unsigned char *,wchar_t *,unsigned long,int *,wchar_t *,unsigned long)" (?_RTC_GetSrcLine@@YAHPAEPA_WKPAH1K@Z) libirc.lib(tbk_backtrace.obj) : error LNK2001: unresolved external symbol __imp__VirtualQuery@12 LIBCMTD.lib(eh3valid.obj) : error LNK2001: unresolved external symbol __imp__VirtualQuery@12 libifcoremt.lib(libifcoremain.obj) : error LNK2019: unresolved external symbol _MAIN__ referenced in function _main Debug/WIpxLib.exe : fatal error LNK1120: 410 unresolved externals WIpxLib build failed.
chstoyer's picture

Steve,

I think I found the problem. I am trying to build a library and probably set it up as an executable with no main program.

Let me work a bit before you bother to answer.

Charles

chstoyer's picture

I have resolved the first problem. I was trying to build a library and forgot to specify that and was trying to build it as an exe without a main program, which of course didn't work.

However, aI am still having a problem trying to build an application that uses my library and the Winteracter library. I now get only one unresolved external,intel_f2int. It is called from routines in the Winteracter library.

I cannot figure out how to attach files. Where can I find help on this? I tried Add Files and couldn't get very far. BuildLog.htm is in C:\IXVLF\DEBUG

Thanks, Charles

Here is my BuildLog.htm

------ Build started: Project: IXVLF, Configuration: Debug|Win32 ------

Deleting intermediate files and output files for project 'IXVLF', configuration 'Debug|Win32'.

Compiling with Intel Fortran 9.1 C:\Program Files (x86)\Intel\Compiler\Fortran\9.1\IA32\...

ifort /nologo /Zi /Od /module:"Debug/" /object:"Debug/" /traceback /check:bounds /libs:static /threads /dbglibs /winapp /c /Qvc8 /Qlocation,link,"C:\Program Files (x86)\Microsoft Visual Studio 8\VC\bin" "C:\IXVLF\ModsVLF.f90"

ifort /nologo /Zi /Od /module:"Debug/" /object:"Debug/" /traceback /check:bounds /libs:static /threads /dbglibs /winapp /c /Qvc8 /Qlocation,link,"C:\Program Files (x86)\Microsoft Visual Studio 8\VC\bin" "C:\IXVLF\RESOURCE.f90"

ifort /nologo /Zi /Od /module:"Debug/" /object:"Debug/" /traceback /check:bounds /libs:static /threads /dbglibs /winapp /c /Qvc8 /Qlocation,link,"C:\Program Files (x86)\Microsoft Visual Studio 8\VC\bin" "C:\IXVLF\ViewPropNew.f90"

ifort /nologo /Zi /Od /module:"Debug/" /object:"Debug/" /traceback /check:bounds /libs:static /threads /dbglibs /winapp /c /Qvc8 /Qlocation,link,"C:\Program Files (x86)\Microsoft Visual Studio 8\VC\bin" "C:\IXVLF\PlotMapVLF.F90"

ifort /nologo /Zi /Od /module:"Debug/" /object:"Debug/" /traceback /check:bounds /libs:static /threads /dbglibs /winapp /c /Qvc8 /Qlocation,link,"C:\Program Files (x86)\Microsoft Visual Studio 8\VC\bin" "C:\IXVLF\BIOVLF.f90"

ifort /nologo /Zi /Od /module:"Debug/" /object:"Debug/" /traceback /check:bounds /libs:static /threads /dbglibs /winapp /c /Qvc8 /Qlocation,link,"C:\Program Files (x86)\Microsoft Visual Studio 8\VC\bin" "C:\IXVLF\XYZIO.f90"

ifort /nologo /Zi /Od /module:"Debug/" /object:"Debug/" /traceback /check:bounds /libs:static /threads /dbglibs /winapp /c /Qvc8 /Qlocation,link,"C:\Program Files (x86)\Microsoft Visual Studio 8\VC\bin" "C:\IXVLF\IXVLF.f90"

ifort /nologo /Zi /Od /module:"Debug/" /object:"Debug/" /traceback /check:bounds /libs:static /threads /dbglibs /winapp /c /Qvc8 /Qlocation,link,"C:\Program Files (x86)\Microsoft Visual Studio 8\VC\bin" "C:\IXVLF\VLFProcess.F90"

ifort /nologo /Zi /Od /module:"Debug/" /object:"Debug/" /traceback /check:bounds /libs:static /threads /dbglibs /winapp /c /Qvc8 /Qlocation,link,"C:\Program Files (x86)\Microsoft Visual Studio 8\VC\bin" "C:\IXVLF\Dummies.f90"

ifort /nologo /Zi /Od /module:"Debug/" /object:"Debug/" /traceback /check:bounds /libs:static /threads /dbglibs /winapp /c /Qvc8 /Qlocation,link,"C:\Program Files (x86)\Microsoft Visual Studio 8\VC\bin" "C:\IXVLF\PlotProfile.F90"

ifort /nologo /Zi /Od /module:"Debug/" /object:"Debug/" /traceback /check:bounds /libs:static /threads /dbglibs /winapp /c /Qvc8 /Qlocation,link,"C:\Program Files (x86)\Microsoft Visual Studio 8\VC\bin" "C:\IXVLF\DrawGrid.f90"

ifort /nologo /Zi /Od /module:"Debug/" /object:"Debug/" /traceback /check:bounds /libs:static /threads /dbglibs /winapp /c /Qvc8 /Qlocation,link,"C:\Program Files (x86)\Microsoft Visual Studio 8\VC\bin" "C:\IXVLF\Dialogs.f90"

ifort /nologo /Zi /Od /module:"Debug/" /object:"Debug/" /traceback /check:bounds /libs:static /threads /dbglibs /winapp /c /Qvc8 /Qlocation,link,"C:\Program Files (x86)\Microsoft Visual Studio 8\VC\bin" "C:\IXVLF\PlotHjeltSection.f90"

ifort /nologo /Zi /Od /module:"Debug/" /object:"Debug/" /traceback /check:bounds /libs:static /threads /dbglibs /winapp /c /Qvc8 /Qlocation,link,"C:\Program Files (x86)\Microsoft Visual Studio 8\VC\bin" "C:\IXVLF\BioIXVLF.F90"

ifort /nologo /Zi /Od /module:"Debug/" /object:"Debug/" /traceback /check:bounds /libs:static /threads /dbglibs /winapp /c /Qvc8 /Qlocation,link,"C:\Program Files (x86)\Microsoft Visual Studio 8\VC\bin" "C:\IXVLF\Menus.f90"

ifort /nologo /Zi /Od /module:"Debug/" /object:"Debug/" /traceback /check:bounds /libs:static /threads /dbglibs /winapp /c /Qvc8 /Qlocation,link,"C:\Program Files (x86)\Microsoft Visual Studio 8\VC\bin" "C:\IXVLF\IniFile.f90"

ifort /nologo /Zi /Od /module:"Debug/" /object:"Debug/" /traceback /check:bounds /libs:static /threads /dbglibs /winapp /c /Qvc8 /Qlocation,link,"C:\Program Files (x86)\Microsoft Visual Studio 8\VC\bin" "C:\IXVLF\WADIIN.F90"

ifort /nologo /Zi /Od /module:"Debug/" /object:"Debug/" /traceback /check:bounds /libs:static /threads /dbglibs /winapp /c /Qvc8 /Qlocation,link,"C:\Program Files (x86)\Microsoft Visual Studio 8\VC\bin" "C:\IXVLF\DrawLabel.f90"

Linking...

Creating temporary file "RSP1.rsp" with contents
[
/OUT:"Debug/IXVLF.exe" /INCREMENTAL:NO /NOLOGO /MANIFEST /MANIFESTFILE:"C:\IXVLF\debug\ixvlf.exe.intermediate.manifest" /DEBUG /PDB:"Debug/IXVLF.pdb" /SUBSYSTEM:WINDOWS "Debug/ModsVLF.obj" "Debug/RESOURCE.obj" "Debug/ViewPropNew.obj" "Debug/PlotMapVLF.obj" "Debug/BIOVLF.obj" "Debug/XYZIO.obj" "Debug/IXVLF.obj" "Debug/VLFProcess.obj" "Debug/Dummies.obj" "Debug/PlotProfile.obj" "Debug/DrawGrid.obj" "Debug/Dialogs.obj" "Debug/PlotHjeltSection.obj" "Debug/BioIXVLF.obj" "Debug/Menus.obj" "Debug/IniFile.obj" "Debug/WADIIN.obj" "Debug/DrawLabel.obj" "C:\Program Files (x86)\Microsoft Visual Studio 8\VC\PlatformSDK\Lib\Htmlhelp.Lib" "C:\Program Files (x86)\Microsoft Visual Studio 8\VC\PlatformSDK\Lib\AdvAPI32.Lib" "C:\wint\lib.if8\winter.lib" "C:\Program Files (x86)\Microsoft Visual Studio 8\VC\PlatformSDK\Lib\WinSpool.Lib" "C:\Program Files (x86)\Microsoft Visual Studio 8\VC\PlatformSDK\Lib\User32.Lib" "C:\Program Files (x86)\Microsoft Visual Studio 8\VC\PlatformSDK\Lib\Kernel32.Lib" "C:\Program Files (x86)\Microsoft Visual Studio 8\VC\PlatformSDK\Lib\ComDlg32.Lib" "C:\Program Files (x86)\Microsoft Visual Studio 8\VC\PlatformSDK\Lib\Gdi32.Lib" "C:\WIPXLib\Debug\WIPXLib.lib" "C:\Program Files (x86)\Microsoft Visual Studio 8\VC\PlatformSDK\Lib\WinMM.Lib" "C:\Program Files (x86)\Microsoft Visual Studio 8\VC\PlatformSDK\Lib\Shell32.Lib"
]
Creating command line "Link @"C:\IXVLF\Debug\RSP1.rsp""

Link: executing 'link'
winter.lib(yygridgetany.obj) : error LNK2019: unresolved external symbol ___intel_f2int referenced in function _YYGRIDGETANY
winter.lib(igrtrapezium.obj) : error LNK2001: unresolved external symbol ___intel_f2int
winter.lib(igrunitstopixels.obj) : error LNK2001: unresolved external symbol ___intel_f2int
winter.lib(infogrscreen.obj) : error LNK2001: unresolved external symbol ___intel_f2int
winter.lib(igrfileinfo.obj) : error LNK2001: unresolved external symbol ___intel_f2int

snip...

winter.lib(windowunitsfrompixels.obj) : error LNK2001: unresolved external symbol ___intel_f2int
Debug/IXVLF.exe : fatal error LNK1120: 1 unresolved externals

IXVLF build failed.

Steve Lionel (Intel)'s picture

Instructions for attaching files are in the link in my signature, below.

My guess is that the problem is that Winteracter is built with a newer version of Intel Fortran than you are using. That routine is in current versions of the Intel libraries.

Steve

Login to leave a comment.