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

Using IMSL into Abaqus application

perzo
Beginner
961 Views
Hi

I have problem with running simulations into Abaqus using IMSL Fortran library. When I'm compiling fortran source I have such kind of information:

Abaqus JOB ch5_1_081209
Abaqus 6.9-1
Begin Compiling Double Precision Abaqus/Explicit User Subroutines
12/10/09 18:44:24
End Compiling Double Precision Abaqus/Explicit User Subroutines
12/10/09 18:44:25
Begin Linking Double Precision Abaqus/Explicit User Subroutines
12/10/09 18:44:25
libifcoremt.lib(for_vm.obj) : error LNK2005: _for_deallocate already defined in LIBIFCOREMD.LIB(libifcoremd.dll)
libifcoremt.lib(for_vm.obj) : error LNK2005: _for_allocate already defined in LIBIFCOREMD.LIB(libifcoremd.dll)
libifcoremt.lib(for_f90str.obj) : error LNK2005: _for_cpystr already defined in LIBIFCOREMD.LIB(libifcoremd.dll)
libifcoremt.lib(for_f90str.obj) : error LNK2005: _for_concat already defined in LIBIFCOREMD.LIB(libifcoremd.dll)
libifcoremt.lib(for_open.obj) : error LNK2005: _for_open already defined in LIBIFCOREMD.LIB(libifcoremd.dll)
libifcoremt.lib(for_close.obj) : error LNK2005: _for_close already defined in LIBIFCOREMD.LIB(libifcoremd.dll)
libifcoremt.lib(for_wseq.obj) : error LNK2005: _for_write_seq already defined in LIBIFCOREMD.LIB(libifcoremd.dll)
libifcoremt.lib(for_wseq.obj) : error LNK2005: _for_write_seq_xmit already defined in LIBIFCOREMD.LIB(libifcoremd.dll)
Creating library explicitU-D.lib and object explicitU-D.exp
imsls_err.lib(flexlm.obj) : error LNK2019: unresolved external symbol __iob referenced in function _imslf_flexlm
libifcoremt.lib(for_diags_intel.obj) : error LNK2001: unresolved external symbol __iob
libifcoremt.lib(for_nt_open_proc.obj) : error LNK2001: unresolved external symbol __iob
libmmt.lib(libm_error.obj) : error LNK2001: unresolved external symbol __iob
imsls_err.lib(flexlm.obj) : error LNK2019: unresolved external symbol _lc_get_config referenced in function _imslf_flexlm
imsls_err.lib(flexlm.obj) : error LNK2019: unresolved external symbol _lc_set_attr referenced in function _imslf_flexlm
imsls_err.lib(flexlm.obj) : error LNK2019: unresolved external symbol _lc_hostname referenced in function _imslf_flexlm
imsls_err.lib(flexlm.obj) : error LNK2019: unresolved external symbol _lc_status referenced in function _imslf_flexlm
imsls_err.lib(flexlm.obj) : error LNK2019: unresolved external symbol _lc_username referenced in function _imslf_flexlm
imsls_err.lib(flexlm.obj) : error LNK2019: unresolved external symbol _lc_userlist referenced in function _imslf_flexlm
imsls_err.lib(flexlm.obj) : error LNK2019: unresolved external symbol _lc_checkout referenced in function _imslf_flexlm
imsls_err.lib(flexlm.obj) : error LNK2019: unresolved external symbol _lc_perror referenced in function _imslf_flexlm
imsls_err.lib(flexlm.obj) : error LNK2019: unresolved external symbol _lc_lic_where referenced in function _imslf_flexlm
imsls_err.lib(flexlm.obj) : error LNK2019: unresolved external symbol _lc_new_job referenced in function _imslf_flexlm
imsls_err.lib(flexlm.obj) : error LNK2019: unresolved external symbol _lc_get_errno referenced in function _imslf_flexlm
imsls_err.lib(flexlm.obj) : error LNK2019: unresolved external symbol _lc_free_job referenced in function _cleanup_lm_license
imsls_err.lib(flexlm.obj) : error LNK2019: unresolved external symbol _lc_timer referenced in function _imslf_highland_check
libifcoremt.lib(for_init.obj) : error LNK2019: unresolved external symbol ___argv referenced in function _for_rtl_init_.
libifcoremt.lib(for_init.obj) : error LNK2019: unresolved external symbol ___argc referenced in function _for_rtl_init_.
explicitU-D.dll : fatal error LNK1120: 16 unresolved externals
Abaqus Error: Problem during linking - Double Precision Abaqus/Explicit User Subroutines.
This error may be due to a mismatch in the Abaqus user subroutine arguments.
These arguments sometimes change from release to release, so user subroutines
used with a previous release of Abaqus may need to be adjusted.
Abaqus/Analysis exited with errors

I'm using:
Abaqus: 6.9-1
Intel Fortran Compiler 10.0.35
IMSL* Fortran Numerical Library 6.0

Do you now what is wrong or did you ever adding IMSL into fortran into Abaqus
Thanks for any help
perzo
0 Kudos
1 Solution
Steven_L_Intel1
Employee
961 Views
You are using a version of IMSL that you purchased separately - not the one that is bundled into Intel Visual Fortran Professional Edition with IMSL. Please contact Visual Numerics for assistance with that. The separate version of IMSL has specific linking requirements due to the embedded licensing code.

Also, you are mixing both DLL and static versions of the Intel Fortran library, which leads to some, but not all, oif those linking errors. You may need to specify /libs:dll /threads on your Fortran compiles if the other libraries require the DLL libraries. Since you have not shown the commands used to compile and link, I can't advise you further.

View solution in original post

0 Kudos
2 Replies
Steven_L_Intel1
Employee
962 Views
You are using a version of IMSL that you purchased separately - not the one that is bundled into Intel Visual Fortran Professional Edition with IMSL. Please contact Visual Numerics for assistance with that. The separate version of IMSL has specific linking requirements due to the embedded licensing code.

Also, you are mixing both DLL and static versions of the Intel Fortran library, which leads to some, but not all, oif those linking errors. You may need to specify /libs:dll /threads on your Fortran compiles if the other libraries require the DLL libraries. Since you have not shown the commands used to compile and link, I can't advise you further.
0 Kudos
perzo
Beginner
961 Views
You are using a version of IMSL that you purchased separately - not the one that is bundled into Intel Visual Fortran Professional Edition with IMSL. Please contact Visual Numerics for assistance with that. The separate version of IMSL has specific linking requirements due to the embedded licensing code.

Also, you are mixing both DLL and static versions of the Intel Fortran library, which leads to some, but not all, oif those linking errors. You may need to specify /libs:dll /threads on your Fortran compiles if the other libraries require the DLL libraries. Since you have not shown the commands used to compile and link, I can't advise you further.

It was exactly mixed libraries in Abaqus configuration file:

from:
#link_sl= 'cmd /c "LINK /nologo /INCREMENTAL:NO /subsystem:console /machine:X86 /NODEFAULTLIB:LIBC.LIB /NODEFAULTLIB:LIBCMT.LIB /DEFAULTLIB:OLDNAMES.LIB /DEFAULTLIB:LIBIFCOREMD.LIB /DEFAULTLIB:LIBIFPORTMD.LIB /DEFAULTLIB:LIBMMD.LIB /DEFAULTLIB:MSVCRT.LIB /NODEFAULTLIB:MSVCRTD.LIB /DEFAULTLIB:MSVCRTD.LIB /DEFAULTLIB:kernel32.lib /DEFAULTLIB:user32.lib /DEFAULTLIB:advapi32.lib /DEFAULTLIB:imsl.lib /DEFAULTLIB:imslscalar.lib /DEFAULTLIB:imslblas.lib /DEFAULTLIB:imsls_err.lib /FIXED:NO /dll /def:%E /out:%U %F %A %B && mt /manifest %U.manifest /outputresource:%U;2 && del %U.manifest"'

to:
link_sl= 'cmd /c "LINK /nologo /INCREMENTAL:NO /subsystem:console /machine:X86 /NODEFAULTLIB:LIBC.LIB /NODEFAULTLIB:LIBCMT.LIB /DEFAULTLIB:OLDNAMES.LIB /DEFAULTLIB:LIBIFCOREMD.LIB /DEFAULTLIB:LIBIFPORTMD.LIB /DEFAULTLIB:LIBMMD.LIB /DEFAULTLIB:MSVCRT.LIB /NODEFAULTLIB:MSVCRTD.LIB /DEFAULTLIB:MSVCRTD.LIB /DEFAULTLIB:kernel32.lib /DEFAULTLIB:user32.lib /DEFAULTLIB:advapi32.lib /DEFAULTLIB:imsl_dll.lib /DEFAULTLIB:imslscalar.lib /DEFAULTLIB:imslblas.lib /DEFAULTLIB:imsls_err.lib /FIXED:NO /dll /def:%E /out:%U %F %A %B && mt /manifest %U.manifest /outputresource:%U;2 && del %U.manifest"'

thanks a lotSteve
Perzo
0 Kudos
Reply