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

Newbie question - Clean compile then link errors

hbell1
Beginner
478 Views

I am migrating an application that compiled and linked cleanly in CVF 6.6. But in IVF it would only compile. I received a number of link error messagesindicating it was unable to locate various modules that had just been compiled cleanly. Are there someFAQs about common linking errors, especially when migrating Compaq Visual Fortran applications?

Harry Bell

0 Kudos
8 Replies
Steven_L_Intel1
Employee
478 Views
What exactly are the errors? Have you read this whitepaper on migrating from CVF?
0 Kudos
hbell1
Beginner
478 Views

I've read the main points of the white paperand did the two-step conversion process on my CVF project to convert it to an IVF project. Belowis the buildlog.txt file. Any insight or debugging approaches would be greatly appreciated.

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

Compiling with Intel Fortran 9.0...
ifort /nologo /Zi /Od /real_size:64 /fpconstant /iface:cvf /module:"Debug/" /object:"Debug/" /traceback /check:bounds /libs:static /threads /winapp /c "c:Documents and SettingsAdministratorFortranPickStockfit3.for"
ifort /nologo /Zi /Od /real_size:64 /fpconstant /iface:cvf /module:"Debug/" /object:"Debug/" /traceback /check:bounds /libs:static /threads /winapp /c "C:Documents and SettingsAdministratorFortranPickStockXflogm2.f90"
ifort /nologo /Zi /Od /real_size:64 /fpconstant /iface:cvf /module:"Debug/" /object:"Debug/" /traceback /check:bounds /libs:static /threads /winapp /c "c:Documents and SettingsAdministratorFortranPickStockPICKSTOCKWIN.f90"
ifort /nologo /Zi /Od /real_size:64 /fpconstant /iface:cvf /module:"Debug/" /object:"Debug/" /traceback /check:bounds /libs:static /threads /winapp /c "c:Documents and SettingsAdministratorFortranPickStockTqli.for"
ifort /nologo /Zi /Od /real_size:64 /fpconstant /iface:cvf /module:"Debug/" /object:"Debug/" /traceback /check:bounds /libs:static /threads /winapp /c /extfor:f "c:Documents and SettingsAdministratorFortranPickStockdsaupd.f"
ifort /nologo /Zi /Od /real_size:64 /fpconstant /iface:cvf /module:"Debug/" /object:"Debug/" /traceback /check:bounds /libs:static /threads /winapp /c "c:Documents and SettingsAdministratorFortranPickStockupdatesub.for"
ifort /nologo /Zi /Od /real_size:64 /fpconstant /iface:cvf /module:"Debug/" /object:"Debug/" /traceback /check:bounds /libs:static /threads /winapp /c "c:Documents and SettingsAdministratorFortranPickStockwritewin.for"
ifort /nologo /Zi /Od /real_size:64 /fpconstant /iface:cvf /module:"Debug/" /object:"Debug/" /traceback /check:bounds /libs:static /threads /winapp /c /extfor:f "c:Documents and SettingsAdministratorFortranPickStockdsdrv1a.f"
ifort /nologo /Zi /Od /real_size:64 /fpconstant /iface:cvf /module:"Debug/" /object:"Debug/" /traceback /check:bounds /libs:static /threads /winapp /c "c:Documents and SettingsAdministratorFortranPickStockpickst6sub.for"
ifort /nologo /Zi /Od /real_size:64 /fpconstant /iface:cvf /module:"Debug/" /object:"Debug/" /traceback /check:bounds /libs:static /threads /winapp /c /extfor:f "c:Documents and SettingsAdministratorFortranPickStockdsaup2.f"
ifort /nologo /Zi /Od /real_size:64 /fpconstant /iface:cvf /module:"Debug/" /object:"Debug/" /traceback /check:bounds /libs:static /threads /winapp /c /extfor:f "c:Documents and SettingsAdministratorFortranPickStockdsaitr.f"
ifort /nologo /Zi /Od /real_size:64 /fpconstant /iface:cvf /module:"Debug/" /object:"Debug/" /traceback /check:bounds /libs:static /threads /winapp /c "c:Documents and SettingsAdministratorFortranPickStockTred2.for"
Linking...
Creating temporary file "RSP1.rsp" with contents
[
/OUT:"Debug/pickstockwin.exe" /INCREMENTAL:NO /NOLOGO /DEBUG /PDB:"Debug/pickstockwin.pdb" /MAP:"Debug/pickstockwin.map" /SUBSYSTEM:WINDOWS /STACK:2097152 version.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib dfordll.lib /MACHINE:I386 Debug/dsconv.obj Debug/xerbla.obj Debug/dseigt.obj Debug/dlarfg.obj Debug/daxpy.obj Debug/dseupd.obj Debug/benchmarksub.obj Debug/piksrhb.obj Debug/dvout.obj Debug/dsortr.obj Debug/dmout.obj Debug/dlacpy.obj Debug/ddot.obj Debug/etime1.obj Debug/dorm2r.obj Debug/dlartg.obj Debug/fitcv.obj Debug/dlapy2.obj Debug/dlae2.obj Debug/getspc.obj Debug/dlascl.obj Debug/dlamch2.obj Debug/lsame.obj Debug/dlamch.obj Debug/dstqrb.obj Debug/dlarf.obj Debug/dlanst.obj Debug/dlarnv.obj Debug/dlaev2.obj Debug/dgetv0.obj Debug/dsteqr.obj Debug/dsesrt.obj Debug/dlasrt.obj Debug/dswap.obj Debug/dsgets.obj Debug/dsapps.obj Debug/dger.obj Debug/dgemv.obj Debug/Pythag.obj Debug/Eigsrthb.obj Debug/dstats.obj Debug/dnrm2.obj Debug/dlassq.obj Debug/dlaruv.obj Debug/dgeqr2.obj Debug/dcopy.obj Debug/second.obj Debug/fit3.obj Debug/dlaset.obj Debug/Gaussjhb.obj Debug/dscal.obj Debug/av.obj Debug/ivout.obj Debug/dlasr.obj Debug/PICKSTOCKWINGlobals.obj Debug/Dfauto.obj Debug/Xflogm2.obj Debug/sase.obj Debug/Browser.obj Debug/PICKSTOCKWIN.obj Debug/Tqli.obj Debug/dsaupd.obj Debug/updatesub.obj Debug/writewin.obj Debug/dsdrv1a.obj Debug/pickst6sub.obj Debug/dsaup2.obj Debug/dsaitr.obj Debug/Tred2.obj Debug/PICKSTOCKWIN.res "c:Documents and SettingsAdministratorFortranPickStockdinp9_a2.obj" "c:Documents and SettingsAdministratorFortranPickStockcommapos.obj" "c:Documents and SettingsAdministratorFortranPickStockdsumsq7_a.obj" "c:Documents and SettingsAdministratorFortranPickStockcpuids.obj" "c:Documents and SettingsAdministratorFortranPickStockgetcpusp.obj" "c:Documents and SettingsAdministratorFortranPickStockdinp8_a2.obj" "c:Documents and SettingsAdministratorFortranPickStockdinp7_a.obj" "c:Documents and SettingsAdministratorFortranPickStocksprsa4.obj"
]
Creating command line "Link @"c:Documents and SettingsAdministratorMy Documents - HPpickstockwinDebugRSP1.rsp""
Debug/PICKSTOCKWIN.obj:warning : locally defined symbol __imp__SASE_mp_ISAFESERIAL_CUSTOMERCODE imported
Debug/PICKSTOCKWIN.obj:warning : locally defined symbol __imp__SASE_mp_ISAFESERIAL_CHECKLICENSE imported
Debug/PICKSTOCKWIN.obj:warning : locally defined symbol __imp__SASE_mp_ISAFESERIAL_EXECUTION imported
Debug/PICKSTOCKWIN.obj:warning : locally defined symbol __imp__SASE_mp_ISAFESERIAL_SAFEIMPORT imported
Debug/PICKSTOCKWIN.obj:warning : locally defined symbol __imp__SASE_mp_ISAFESERIAL_SAFETRANS impoIPO Error: unresolved : _DLGGETRES
Referenced in Debug/Xflogm2.obj
IPO Error: unresolved : _DLGPARSERES
Referenced in Debug/Xflogm2.obj
IPO Error: unresolved : _DLGPARSERESCONTROL
Referenced in Debug/Xflogm2.obj
IPO Error: unresolved : _VARTEXTSET
Referenced in Debug/Xflogm2.obj
IPO Error: unresolved : _DLGALLOCATEEVENTHANDLERLIST
Referenced in Debug/Xflogm2.obj
IPO Error: unresolved : _DLGID2HWND
Referenced in Debug/Xflogm2.obj
IPO Error: unresolved : _VARTEXTSENDSETMESSAGE
Referenced in Debug/Xflogm2.obj
IPO Error: unresolved : _DLGENABLEWINDOW
& nbsp; Referenced in Debug/Xflogm2.obj
IPO Error: unresolved : _DLGSENDMESSAGE
Referenced in Debug/Xflogm2.obj
IPO Error: unresolved : _VARTEXTSENDGETMESSAGE
Referenced in Debug/Xflogm2.obj
IPO Error: unresolved : _DLGISWINDOWENABLED
Referenced in Debug/Xflogm2.obj
IPO Error: unresolved : _DLGGETCONTROLIDISPATCH
Referenced in Debug/Xflogm2.obj
IPO Error: unresolved : _DLGDOCALLBACK
Referenced in Debug/Xflogm2.obj
IPO Error: unresolved : _DLGHWND2ID
Referenced in Debug/Xflogm2.obj
IPO Error: unresolved : _DLGSETAXCONTROLINFO
Referenced in Debug/Xflogm2.obj
IPO Error: unresolved : _DLGEXECUTEDLGINIT
Referenced in Debug/Xflogm2.obj
IPO Error: unresolved : _DLGDOMODAL
Referenced in Debug/Xflogm2.obj
IPO Error: unresolved : _DLGENDDIALOG
Referenced in Debug/Xflogm2.obj
IPO Error: unresolved : _DLGDOMODELESS
Referenced in Debug/Xflogm2.obj
IPO Error: unresolved : _DLGISDIALOGMESSAGE
Referenced in Debug/Xflogm2.obj
IPO Error: unresolved : _DLGDEALLOCATEEVENTHANDLERLIST
Referenced in Debug/Xflogm2.obj
IPO Error: unresolved : _VARTEXTFREE
Referenced in Debug/Xflogm2.obj
IPO Error: unresolved : _VARTEXTSETLENGTH
Referenced in Debug/Xflogm2.obj
IPO Error: unresolved : _DLGADDEVENTHANDLER
Referenced in Debug/Xflogm2.obj
IPO Error: unresolved : _VARTEXTGET
Referenced in Debug/Xflogm2.obj
IPO Error: unresolved : _XFLOGM2_mp_DLGINIT
Referenced in Debug/PICKSTOCKWIN.obj
IPO Error: unresolved : _XFLOGM2_mp_DLGSETLOG
Referenced in Debug/PICKSTOCKWIN.obj
IPO Error: unresolved : _XFLOGM2_mp_DLGSETCHAR
Referenced in Debug/PICKSTOCKWIN.obj
Referenced in Debug/updatesub.obj
Referenced in Debug/writewin.obj
IPO Error: unresolved : _XFLOGM2_mp_DLGSETSUB
Referenced in Debug/PICKSTOCKWIN.obj
IPO Error: unresolved : _XFLOGM2_mp_DLGMODAL
Referenced in Debug/PICKSTOCKWIN.obj
IPO Error: unresolved : _XFLOGM2_mp_DLGSETINT
Referenced in Debug/PICKSTOCKWIN.obj
Referenced in Debug/Tqli.obj
Referenced in Debug/updatesub.obj
Referenced in Debug/pickst6sub.obj
Referenced in Debug/dsaitr.obj
Referenced in Debug/Tred2.obj
IPO Error: unresolved : _ XFLOGM2_mp_DLGGETINT
Referenced in Debug/PICKSTOCKWIN.obj
IPO Error: unresolved : _XFLOGM2_mp_DLGGETLOG
Referenced in Debug/PICKSTOCKWIN.obj
IPO Error: unresolved : _XFLOGM2_mp_DLGGETCHAR
Referenced in Debug/PICKSTOCKWIN.obj
IPO Error: unresolved : _XFLOGM2_mp_DLGFLUSH
Referenced in Debug/PICKSTOCKWIN.obj
Referenced in Debug/Tqli.obj
Referenced in Debug/updatesub.obj
Referenced in Debug/writewin.obj
Referenced in Debug/pickst6sub.obj
Referenced in Debug/dsaitr.obj
Referenced in Debug/Tred2.obj
IPO Error: unresolved : _XFLOGM2_mp_DLGEXIT
Referenced in Debug/PICKSTOCKWIN.obj
IPO Error: unresolved : _XFLOGM2_mp_DLGSETRETURN
Referenced in Debug/PICKSTOCKWIN.obj
rted
Debug/PICKSTOCKWIN.obj:warning : locally defined symbol __imp__SASE_mp_ISAFESERIAL_VALIDATECODE imported
Link: executing 'link'
libifcoremt.lib(for_diags_intel.obj) : error LNK2005: _for_emit_diagnostic already defined in dfordll.lib(DFORRT.DLL)
libifcoremt.lib(for_vm.obj) : error LNK2005: _for_allocate already defined in dfordll.lib(DFORRT.DLL)
libifcoremt.lib(for_vm.obj) : error LNK2005: _for_alloc_allocatable already defined in dfordll.lib(DFORRT.DLL)
libifcoremt.lib(for_vm.obj) : error LNK2005: _for_deallocate already defined in dfordll.lib(DFORRT.DLL)
libifcoremt.lib(for_vm.obj) : error LNK2005: _for_dealloc_allocatable already defined in dfordll.lib(DFORRT.DLL)
libifcoremt.lib(for_vm.obj) : error LNK2005: _for_check_mult_overflow already defined in dfordll.lib(DFORRT.DLL)
libifcoremt.lib(for_open.obj) : error LNK2005: _for_open already defined in dfordll.lib(DFORRT.DLL)
libifcoremt.lib(for_close.obj) : error LNK2005: _for_close already defined in dfordll.lib(DFORRT.DLL)
ifconsol.lib(for_m_console.obj) : error LNK2005: __QWINGethWnd already defined in dfconsol.lib(for_m_console.obj)
ifconsol.lib(for_m_console.obj) : error LNK2005: __QWINTGethFrame already defined in dfconsol.lib(for_m_console.obj)
ifconsol.lib(for_m_console.obj) : error LNK2005: __QWINGetFocus already defined in dfconsol.lib(for_m_console.obj)
ifconsol.lib(for_m_console.obj) : error LNK2005: __QWINGetDefaultWindow already defined in dfconsol.lib(for_m_console.obj)
ifconsol.lib(for_m_console.obj) : error LNK2005: _ChangeQWINCP already defined in dfconsol.lib(for_m_console.obj)
ifconsol.lib(for_m_console.obj) : error LNK2005: __QWINGetFileName already defined in dfconsol.lib(for_m_console.obj)
ifconsol.lib(for_m_console.obj) : error LNK2005: __wgopen already defined in dfconsol.lib(for_m_console.obj)
ifconsol.lib(for_m_console.obj) : error LNK2005: __QWINClose already defined in dfconsol.lib(for_m_console.obj)
ifconsol.lib(for_m_console.obj) : error LNK2005: __wgsetactive already defined in dfconsol.lib(for_m_console.obj)
ifconsol.lib(for_m_console.obj) : error LNK2005: __wggetactive already defined in dfconsol.lib(for_m_console.obj)
ifconsol.lib(for_m_console.obj) : error LNK2005: _Regis terGetHandleQQ already defined in dfconsol.lib(for_m_console.obj)
ifconsol.lib(for_m_console.obj) : error LNK2005: _RegisterGetUnitQQ already defined in dfconsol.lib(for_m_console.obj)
ifconsol.lib(for_m_console.obj) : error LNK2005: __QWINWrite already defined in dfconsol.lib(for_m_console.obj)
ifconsol.lib(for_m_console.obj) : error LNK2005: __QWINSetIOFOCUS already defined in dfconsol.lib(for_m_console.obj)
ifconsol.lib(for_m_console.obj) : error LNK2005: __QWINRead already defined in dfconsol.lib(for_m_console.obj)
ifconsol.lib(for_m_console.obj) : error LNK2005: __QWINSetSize already defined in dfconsol.lib(for_m_console.obj)
ifconsol.lib(for_m_console.obj) : error LNK2005: __QWINGetSize already defined in dfconsol.lib(for_m_console.obj)
ifconsol.lib(for_m_console.obj) : error LNK2005: __QWINMsgBox already defined in dfconsol.lib(for_m_console.obj)
ifconsol.lib(for_m_console.obj) : error LNK2005: __QWINRegisterInit already defined in dfconsol.lib(for_m_console.obj)
ifconsol.lib(for_m_console.obj) : error LNK2005: __QWINRegisterEnd already defined in dfconsol.lib(for_m_console.obj)
ifconsol.lib(for_m_console.obj) : error LNK2005: __inchar already defined in dfconsol.lib(for_m_console.obj)
ifconsol.lib(for_m_console.obj) : error LNK2005: __QWINNiceExit already defined in dfconsol.lib(for_m_console.obj)
ifconsol.lib(for_m_console.obj) : error LNK2005: __QWINSetFocus already defined in dfconsol.lib(for_m_console.obj)
ifconsol.lib(for_m_console.obj) : error LNK2005: __clearscreen already defined in dfconsol.lib(for_m_console.obj)
ifconsol.lib(for_m_console.obj) : error LNK2005: __displaycursor already defined in dfconsol.lib(for_m_console.obj)
ifconsol.lib(for_m_console.obj) : error LNK2005: __scrolltextwindow already defined in dfconsol.lib(for_m_console.obj)
ifconsol.lib(for_m_console.obj) : error LNK2005: __qw32used already defined in dfconsol.lib(for_m_console.obj)
libifcoremt.lib(for_diags_intel.obj) : warning LNK4006: _for_emit_diagnostic already defined in dfordll.lib(DFORRT.DLL); second definition ignored
libifcoremt.lib(for_vm.obj) : warning LNK4006: _for_allocate already defined in dfordll.lib(DFORRT.DLL); second definition ignored
libifcoremt.lib(for_vm.obj) : warning LNK4006: _for_alloc_allocatable already defined in dfordll.lib(DFORRT.DLL); second definition ignored
libifcoremt.lib(for_vm.obj) : warning LNK4006: _for_deallocate already defined in dfordll.lib(DFORRT.DLL); second definition ignored
libifcoremt.lib(for_vm.obj) : warning LNK4006: _for_dealloc_allocatable already defined in dfordll.lib(DFORRT.DLL); second definition ignored
libifcoremt.lib(for_vm.obj) : warning LNK4006: _for_check_mult_overflow already defined in dfordll.lib(DFORRT.DLL); second definition ignored
libifcoremt.lib(for_open.obj) : warning LNK4006: _for_open already defined in dfordll.lib(DFORRT.DLL); second definition ignored
libifcoremt.lib(for_close.obj) : warning LNK4006: _for_close already defined in dfordll.lib(DFORRT.DLL); second definition ignored
ifconsol.lib(for_m_console.obj) : warning LNK4006: __QWINGethWnd already defined in dfconsol.lib(for_m_console.obj); second definition ignored
ifconsol.lib(for_m_console.obj) : warning LNK4006: __QWINTGethFrame already defined in dfconsol.lib(for_m_console.obj); second definition ignored
ifconsol.lib(for_m_console.obj) : warning LNK4006: __QWINGetFocus already defined in dfconsol.lib(for_m_console.obj); second definiti on ignored
ifconsol.lib(for_m_console.obj) : warning LNK4006: __QWINGetDefaultWindow already defined in dfconsol.lib(for_m_console.obj); second definition ignored
ifconsol.lib(for_m_console.obj) : warning LNK4006: _ChangeQWINCP already defined in dfconsol.lib(for_m_console.obj); second definition ignored
ifconsol.lib(for_m_console.obj) : warning LNK4006: __QWINGetFileName already defined in dfconsol.lib(for_m_console.obj); second definition ignored
ifconsol.lib(for_m_console.obj) : warning LNK4006: __wgopen already defined in dfconsol.lib(for_m_console.obj); second definition ignored
ifconsol.lib(for_m_console.obj) : warning LNK4006: __QWINClose already defined in dfconsol.lib(for_m_console.obj); second definition ignored
ifconsol.lib(for_m_console.obj) : warning LNK4006: __wgsetactive already defined in dfconsol.lib(for_m_console.obj); second definition ignored
ifconsol.lib(for_m_console.obj) : warning LNK4006: __wggetactive already defined in dfconsol.lib(for_m_console.obj); second definition ignored
ifconsol.lib(for_m_console.obj) : warning LNK4006: _RegisterGetHandleQQ already defined in dfconsol.lib(for_m_console.obj); second definition ignored
ifconsol.lib(for_m_console.obj) : warning LNK4006: _RegisterGetUnitQQ already defined in dfconsol.lib(for_m_console.obj); second definition ignored
ifconsol.lib(for_m_console.obj) : warning LNK4006: __QWINWrite already defined in dfconsol.lib(for_m_console.obj); second definition ignored
ifconsol.lib(for_m_console.obj) : warning LNK4006: __QWINSetIOFOCUS already defined in dfconsol.lib(for_m_console.obj); second definition ignored
ifconsol.lib(for_m_console.obj) : warning LNK4006: __QWINRead already defined in dfconsol.lib(for_m_console.obj); second definition ignored
ifconsol.lib(for_m_console.obj) : warning LNK4006: __QWINSetSize already defined in dfconsol.lib(for_m_console.obj); second definition ignored
ifconsol.lib(for_m_console.obj) : warning LNK4006: __QWINGetSize already defined in dfconsol.lib(for_m_console.obj); second definition ignored
ifconsol.lib(for_m_console.obj) : warning LNK4006: __QWINMsgBox already defined in dfconsol.lib(for_m_console.obj); second definition ignored
ifconsol.lib(for_m_console.obj) : warning LNK4006: __QWINRegisterInit already defined in dfconsol.lib(for_m_console.obj); second definition ignored
ifconsol.lib(for_m_console.obj) : warning LNK4006: __QWINRegisterEnd already defined in dfconsol.lib(for_m_console.obj); second definition ignored
ifconsol.lib(for_m_console.obj) : warning LNK4006: __inchar already defined in dfconsol.lib(for_m_console.obj); second definition ignored
ifconsol.lib(for_m_console.obj) : warning LNK4006: __QWINNiceExit already defined in dfconsol.lib(for_m_console.obj); second definition ignored
ifconsol.lib(for_m_console.obj) : warning LNK4006: __QWINSetFocus already defined in dfconsol.lib(for_m_console.obj); second definition ignored
ifconsol.lib(for_m_console.obj) : warning LNK4006: __clearscreen already defined in dfconsol.lib(for_m_console.obj); second definition ignored
ifconsol.lib(for_m_console.obj) : warning LNK4006: __displaycursor already defined in dfconsol.lib(for_m_console.obj); second definition ignored
ifconsol.lib(for_m_console.obj) : warning LNK4006: __scrolltextwindow already defined in dfconsol.lib(for_m_console.obj); second definition ignored
ifconsol.lib(for_m_console.obj) : warning LNK4006: __qw32used already defined in dfconsol.lib(for_m_ console.obj); second definition ignored
Creating library Debug/pickstockwin.lib and object Debug/pickstockwin.exp
LINK : warning LNK4098: defaultlib 'libc.lib' conflicts with use of other libs; use /NODEFAULTLIB:library
PICKSTOCKWIN.obj : warning LNK4217: locally defined symbol _SASE_mp_ISAFESERIAL_CUSTOMERCODE imported in function _SASECALLBACK@12
PICKSTOCKWIN.obj : warning LNK4217: locally defined symbol _SASE_mp_ISAFESERIAL_CHECKLICENSE imported in function _SASECALLBACK@12
PICKSTOCKWIN.obj : warning LNK4217: locally defined symbol _SASE_mp_ISAFESERIAL_EXECUTION imported in function _SASECALLBACK@12
PICKSTOCKWIN.obj : warning LNK4217: locally defined symbol _SASE_mp_ISAFESERIAL_SAFEIMPORT imported in function _REGISTERSUB@12
PICKSTOCKWIN.obj : warning LNK4217: locally defined symbol _SASE_mp_ISAFESERIAL_SAFETRANS imported in function _REGISTERSUB@12
PICKSTOCKWIN.obj : warning LNK4217: locally defined symbol _SASE_mp_ISAFESERIAL_VALIDATECODE imported in function _REGISTERSUB2@12
Xflogm2.obj : error LNK2019: unresolved external symbol _DLGGETRES referenced in function _XFLOGM2_mp_DLGINITWITHRESOURCEHANDLE
Xflogm2.obj : error LNK2019: unresolved external symbol _DLGPARSERES referenced in function _XFLOGM2_mp_DLGINITWITHRESOURCEHANDLE
Xflogm2.obj : error LNK2019: unresolved external symbol _DLGPARSERESCONTROL referenced in function _XFLOGM2_mp_DLGINITWITHRESOURCEHANDLE
Xflogm2.obj : error LNK2019: unresolved external symbol _VARTEXTSET referenced in function _XFLOGM2_mp_DLGINITWITHRESOURCEHANDLE
Xflogm2.obj : error LNK2019: unresolved external symbol _DLGALLOCATEEVENTHANDLERLIST referenced in function _XFLOGM2_mp_DLGINITWITHRESOURCEHANDLE
Xflogm2.obj : error LNK2019: unresolved external symbol _DLGID2HWND referenced in function _XFLOGM2_mp_DATA2DIALOG
Xflogm2.obj : error LNK2019: unresolved external symbol _VARTEXTSENDSETMESSAGE referenced in function _XFLOGM2_mp_DATA2DIALOG
Xflogm2.obj : error LNK2019: unresolved external symbol _DLGENABLEWINDOW referenced in function _XFLOGM2_mp_DATA2DIALOG
Xflogm2.obj : error LNK2019: unresolved external symbol _DLGSENDMESSAGE referenced in function _XFLOGM2_mp_DATA2DIALOG
Xflogm2.obj : error LNK2019: unresolved external symbol _VARTEXTSENDGETMESSAGE referenced in function _XFLOGM2_mp_DIALOG2DATA
Xflogm2.obj : error LNK2019: unresolved external symbol _DLGISWINDOWENABLED referenced in function _XFLOGM2_mp_DIALOG2DATA
Xflogm2.obj : error LNK2019: unresolved external symbol _DLGGETCONTROLIDISPATCH referenced in function _XFLOGM2_mp_DIALOG2DATA
Xflogm2.obj : error LNK2019: unresolved external symbol _DLGDOCALLBACK referenced in function _XFLOGM2_mp_DLGWMCOMMAND
Xflogm2.obj : error LNK2019: unresolved external symbol _DLGHWND2ID referenced in function _XFLOGM2_mp_DLGWMSCROLL
Xflogm2.obj : error LNK2019: unresolved external symbol _DLGSETAXCONTROLINFO referenced in function _XFLOGM2_mp_dlgmodelessproc
Xflogm2.obj : error LNK2019: unresolved external symbol _DLGEXECUTEDLGINIT referenced in function _XFLOGM2_mp_dlgmodelessproc
Xflogm2.obj : error LNK2019: unresolved external symbol _DLGDOMODAL referenced in function _XFLOGM2_mp_DLGMODALWITHPARENT
Xflogm2.obj : error LNK2019: unresolved external symbol _DLGENDDIALOG referenced in function _XFLOGM2_mp_DLGMODALWITHPARENT
Xflogm2.obj : error LNK2019: unresolved external symbol _DLGDOMODELESS referenced in function _XFLOGM2_mp_DLGMODELESS
Xflogm2.obj : error LNK2019: unresolved external symbol _DLGISDIALOGMESSAGE referenced in function _XFLOGM2_mp_DLGISDLGMESSAGE
Xflogm2.obj : error LNK2019: unresolved external symbol _DLGDEALLOCATEEVENTHANDLERLIST referenced in function _XFLOGM2_mp_DLGUNINIT
Xflogm2.obj : error LNK2019: unresolved external symbol _VARTEXTFREE referenced in function _XFLOGM2_mp_DLGUNINIT
Xflogm2.obj : error LNK2019: unresolved external symbol _VARTEXTSETLENGTH referenced in function _XFLOGM2_mp_DLGSETINT
Xflogm2.obj : error LNK2019: unresolved external symbol _DLGADDEVENTHANDLER referenced in function _XFLOGM2_mp_DLGSETCTRLEVENTHANDLER
Xflogm2.obj : error LNK2019: unresolved external symbol _VARTEXTGET referenced in function _XFLOGM2_mp_DLGGETCHAR
PICKSTOCKWIN.obj : error LNK2019: unresolved external symbol _XFLOGM2_mp_DLGINIT referenced in function _WinMain@16
PICKSTOCKWIN.obj : error LNK2019: unresolved external symbol _XFLOGM2_mp_DLGSETLOG referenced in function _WinMain@16
PICKSTOCKWIN.obj : error LNK2019: unresolved external symbol _XFLOGM2_mp_DLGSETCHAR referenced in function _WinMain@16
updatesub.obj : error LNK2001: unresolved external symbol _XFLOGM2_mp_DLGSETCHAR
writewin.obj : error LNK2001: unresolved external symbol _XFLOGM2_mp_DLGSETCHAR
PICKSTOCKWIN.obj : error LNK2019: unresolved external symbol _XFLOGM2_mp_DLGSETSUB referenced in function _WinMain@16
PICKSTOCKWIN.obj : error LNK2019: unresolved external symbol _XFLOGM2_mp_DLGMODAL referenced in function _WinMain@16
dsaitr.obj : error LNK2001: unresolved external symbol _XFLOGM2_mp_DLGSETINT
Tred2.obj : error LNK2001: unresolved external symbol _XFLOGM2_mp_DLGSETINT
PICKSTOCKWIN.obj : error LNK2019: unresolved external symbol _XFLOGM2_mp_DLGSETINT referenced in function _WinMain@16
Tqli.obj : error LNK2001: unresolved external symbol _XFLOGM2_mp_DLGSETINT
updatesub.obj : error LNK2019: unresolved external symbol _XFLOGM2_mp_DLGSETINT referenced in function _UPDATESUB
pickst6sub.obj : error LNK2001: unresolved external symbol _XFLOGM2_mp_DLGSETINT
PICKSTOCKWIN.obj : error LNK2019: unresolved external symbol _XFLOGM2_mp_DLGGETINT referenced in function _SASECALLBACK@12
PICKSTOCKWIN.obj : error LNK2019: unresolved external symbol _XFLOGM2_mp_DLGGETLOG referenced in function _RADIOCHANGE@12
PICKSTOCKWIN.obj : error LNK2019: unresolved external symbol _XFLOGM2_mp_DLGGETCHAR referenced in function _PICKSTOCKWINAPPLY@12
pickst6sub.obj : error LNK2001: unresolved external symbol _XFLOGM2_mp_DLGFLUSH< BR>dsaitr.obj : error LNK2001: unresolved external symbol _XFLOGM2_mp_DLGFLUSH
Tred2.obj : error LNK2001: unresolved external symbol _XFLOGM2_mp_DLGFLUSH
PICKSTOCKWIN.obj : error LNK2019: unresolved external symbol _XFLOGM2_mp_DLGFLUSH referenced in function _PICKSTOCKWINAPPLY@12
Tqli.obj : error LNK2001: unresolved external symbol _XFLOGM2_mp_DLGFLUSH
updatesub.obj : error LNK2001: unresolved external symbol _XFLOGM2_mp_DLGFLUSH
writewin.obj : error LNK2001: unresolved external symbol _XFLOGM2_mp_DLGFLUSH
PICKSTOCKWIN.obj : error LNK2019: unresolved external symbol _XFLOGM2_mp_DLGEXIT referenced in function _PICKSTOCKWINAPPLY@12
PICKSTOCKWIN.obj : error LNK2019: unresolved external symbol _XFLOGM2_mp_DLGSETRETURN referenced in function _REGISTERSUB@12
Debug/pickstockwin.exe : fatal error LNK1120: 37 unresolved externals

pickstockwin build failed.
Harry Bell
0 Kudos
hbell1
Beginner
478 Views

I suspect I may have chosen the wrong default calling convention

(as described on page 8 of Steven's white paper mentioned earlier).

Now I get this error message that I don't understand when using the STDCALL calling convention:

The REFERENCE attribute cannot be used with a passed length CHARACTER variable on this platform

The subroutineit is referring to is typically:

SUBROUTINE Folder_NewFolder($OBJECT, bName, vOptions, $STATUS)

!DEC$ ATTRIBUTES DLLEXPORT :: Folder_NewFolder

IMPLICIT NONE

INTEGER*4, INTENT(IN) :: $OBJECT ! Object Pointer

!DEC$ ATTRIBUTES VALUE :: $OBJECT

CHARACTER*(*), INTENT(IN) :: bName ! BSTR

!DEC$ ATTRIBUTES REFERENCE :: bName

TYPE (VARIANT), INTENT(IN), OPTIONAL :: vOptions

!DEC$ ATTRIBUTES REFERENCE :: vOptions

INTEGER*4, INTENT(OUT), OPTIONAL :: $STATUS ! Method status

!DEC$ ATTRIBUTES REFERENCE :: $STATUS

INTEGER*4 $$STATUS

INTEGER*4 invokeargs

invokeargs = AUTOALLOCATEINVOKEARGS()

CALL AUTOADDARG(invokeargs, '$ARG1', bName, .FALSE., VT_BSTR)

IF (PRESENT(vOptions)) CALL AUTOADDARG(invokeargs, '$ARG2', vOptions, .FALSE.)

$$STATUS = AUTOINVOKE($OBJECT, 1610743814, invokeargs)

IF (PRESENT($STATUS)) $STATUS = $$STATUS

CALL AUTODEALLOCATEINVOKEARGS (invokeargs)

END SUBROUTINE Folder_NewFolder

Thanks, Harry Bell

0 Kudos
Jugoslav_Dujic
Valued Contributor II
478 Views
Um, having seen Xflogm2 in the link list I guess I have to butt in... it seems that there are several problems, and there are several routines and names which shouldn't be there.

  1. There is reference to CVF run-time library dfordll.lib which shouldn't be there
  2. There are several ones like
    DLGADDEVENTHANDLER referenced in function 
    _XFLOGM2_mp_DLGSETCTRLEVENTHANDLER

    which doesn't exist in XFLOGM2 as provided by myself


The bottom lines are:
  1. You have to ensure that all sources, .objs and .libs are built/rebuilt using IVF
  2. Best, change the calling convention and string argument passing from "CVF/after individual string argument" to "Default/After all arguments" for both Debug and Release configurations
  3. Check that your library/object file list doesn't contain any libs/objs built with CVF
  4. You can download and install latest (well, um, not so fresh) Xeffort for IVF here. Delete everything from Debug/Release folders manually (especially if Xeffort2.obj/Xeffort2.mod is a "cooked" version of yours rather than the one provided by me). Only ensure that "xeffort.lib" is listed in the Linker list.
  5. If you don't have too many source files, perhaps the best overall approach is to start a project from scratch rather than trying to convert it from CVF .dsw file.
Please report the progress. Regards
0 Kudos
hbell1
Beginner
478 Views

Jugoslav,

Could you please clarify your 5 suggestions:

1. You have to ensure that all sources, .objs and .libs are built/rebuilt using IVF:

How do I do this? I added only source files to the project so where did all the unwanted Compaq libraries get called in? I also didglobal search and replaces to convert all of the DF* module to the corresponding IF* module. Do I also need toprocess all of my old modules that interface with ocx and dll files in the Intel Fortran Module Wizard?

2. Best, change the calling convention and string argument passing from "CVF/after individual string argument" to "Default/After all arguments" for both Debug and Release configurations.

OK. Good tip.

3.Check that your library/object file list doesn't contain any libs/objs built with CVF.

How?

4. You can download and install latest (well, um, not so fresh) Xeffort for IVF here. Delete everything from Debug/Release folders manually (especially if Xeffort2.obj/Xeffort2.mod is a "cooked" version of yours rather than the one provided by me). Only ensure that "xeffort.lib" is listed in the Linker list.

I had added some things to XFLOGM2 for my own application (ie. it was cooked); why should that make a difference? I will try out your Xeffort.

5. If you don't have too many source files, perhaps the best overall approach is to start a project from scratch rather than trying to convert it from CVF .dsw file.

I think I did this but still am getting tons of link errors. Shall I reprocess all the ocx and dll interfaces then use XEFFORT in place of XLOGM2?

It's too bad there can't be a more methodical, sure-fire CVF to IVF conversion procedure.

Harry Bell

0 Kudos
Jugoslav_Dujic
Valued Contributor II
478 Views
Uh-oh. Let's go one by one (in no particular order):

4) (Xflogm) -- see my recent response here . Judging on your linker output, iflogm.lib was not pulled in at all, so please follow the advice given there. However, note that Xeffort/Xflogm2.0 does not support ActiveX controls on dialogs, so (if you use them as it seems) you'd be better off with the "cooked" Xflogm 1.0 that you currently have (I haven't tested it thoroughly though)

1) I know little about ActiveX controls and the module wizard; you probably don't have to recreate the .f90 modules, but you should certainly ensure that at least the .f90 files are rebuilt with IVF.

As for the unwanted Compaq .libs, it might be difficult to track. I can only offer general advice about the tools:

a) set the Project/Properties/Linker/General/Show progress to "Display all". It will give you a lengthy list but it may give you a clue where the df***.lib come from
b) you can examine the .lib references that come from individual .obj files by:
  • in command prompt, browse to your /debug folder (or wherever the library is located)
  • type
    dumpbin /directives xxx.lib (xxx.obj)
    that will give you the libraries which are referenced using !DEC$OBJCOMMENT LIB, or embedded by the compiler. Df***.lib shouldn't be there.
In any case, I think that changing Xflogm's reference to iflogm.lib should clean up the most linker errors. Please post the remaining ones, if any.

Hope this helps,
0 Kudos
Steven_L_Intel1
Employee
478 Views
The way I would look for old references to dfor.lib is to use a good file search program, such as Agent Ransack, to search all project files (including objects and libraries) for the string "dfor.lib". Windows Search is useless here.
0 Kudos
hbell1
Beginner
478 Views

I located a bare obj file that was apparently the culprit (source of DF*.LIB references). I had compiled a CVF source file, then edited the ASM file, recompiled it with MASM, and put just the obj file back into the project. The above tips from Steve Lionel and Yugoslav Dujic show some invaluable tools. Thanks!

Harry Bell

0 Kudos
Reply